Link to home
Start Free TrialLog in
Avatar of Sar1973
Sar1973Flag for Italy

asked on

Send Outlook 2000 mail with VBA - how to set "return receipt=True"

I am using VBA in MS Access to create email messages. I would like to create messages with return receipt, but the command "With oMsg   .receipt=True" does not work, as well as the command ".From=myAccount" that I would like to use in order to select an account.
How can I do? Thanx.
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

I believe that's:

oMsg.ReadReceiptRequested = True

http://msdn.microsoft.com/en-us/library/aa171860(office.11).aspx

I'm not sure you can set the Account from which to send this via Code ... Outlook tends to block these items and flag them as security risks. You might take a look at the Properties and Methods listed for the MailItem object to see if one suits your needs:

http://msdn.microsoft.com/en-us/library/aa210946(office.11).aspx
Sar1973,

1. First, I am not familiar with a .Reciept member of an Outlook email.
Please clarify.

Are you trying to get a Delivery Reciept or a Read Reciept?

2. What do you mean by "does not work".
AFAIK, a Delivery reciept (.OriginatorDeliveryReportRequested) would be generated by the recipients email server. If the serever does not support reciepts, a reciept will not be sent.
Also Read reciepts (.ReadReceiptRequested) are sent by choice from the recipient. Recipients can choose to Not send a reciept if they wish, they can also set up the compter to never send reciepts at all.
In other words, Read Reciepts are voluntary, you can't "force" them.

Again, please clarify your intentions.

JeffCoachman
Avatar of Sar1973

ASKER

Thank you, but I am looking for Outlook 2000, not 2003, this is also the point of my question.
Boaq, I would like my recipent to send a receipt when he opens/reads my email; I know it depends on recipient.
Avatar of Sar1973

ASKER

This code works with Olk2000: ".ReadReceiptRequested = True"
I still cannot find a ".From="email@provider.it" command.
Sar1973,
I'm getting confused.
Again, can you confirm that .receipt=True is even a valid member on the email object in 2000 or 2003?
Becasus now you say ".ReadReceiptRequested = True, works in Outlook 2000.
So what was .receipt suppoesed to do, and in what version?
Again, Please explain.

"I would like my recipent to send a receipt when he opens/reads my email; I know it depends on recipient."
Once again, you can only "REQUEST" a read reciept, the recipient will decide if you get one.
Clear?

"I still cannot find a ".From="email@provider.it" command."
Me niether.
Where are you getting these members from?
None of them seem to exist?

Am I mising something here?

JeffCoachman
Sorry ... thought you could do a little of the research yourself and learn about about the Outlook object model, but apparently you require a bit of handholding. Here's the reference for Outlook 2000:

http://msdn.microsoft.com/en-us/library/aa279610(office.10).aspx

if you'll look through the Objects and Properties, you'll see what's available. As Jeff said, there is no "From" property for a Mail object ... are you just assuming these properties are there, or do you have code from somewhere else that says this will work?
Avatar of Sar1973

ASKER

I did it, LSM, but with no result.
1)Before your suggestion I wasn't aware of the existence of ".ReadReceiptRequested = True" command (I know that it is useful to ASK a receipt, Boaq, not to STEAL it...).
2)I have only found a ".From=myemail@myprovider.it" command for Olk2003, but none for 2000.
Thanx.
Avatar of Sar1973

ASKER

Could you also tell me how to set a delivery time of my email? (es. ".deliver=#01/01/2009 12:00")
I'm not Outlook Expert, as I don't use it, but the link I provided should give you all the info you need. Check the Properties for "DeferredDeliveryTime".
Avatar of Sar1973

ASKER

Perfect: finally, to complete my job, I'd like to have an answer to the last comment posted in the following:
https://www.experts-exchange.com/questions/23518737/Send-email-with-VBA-how-to-select-load-the-account.html
Thanx.
I don't see what question 23518737 has to do with grading and closing this question.
Avatar of Sar1973

ASKER

If you read my first question, you'll see I was asking also this. If you cannot answer please telle me: I'll open another question. Thank you.
I still don't see what another question has to do with closing this one.
Avatar of Sar1973

ASKER

O.k., forget it: I'll ask another.
Sar1973,

Not that it is any of my concern, but opening yet another question will flag the Admins and other top Experts here, that you are not willing to work through your current questions.

JeffCoachman
Sar1973,

In that post I suggested that you add the Exchange Zone to the question.
(https://www.experts-exchange.com/Networking/Email_Servers/Exchange/)
This would enable experts from that zone to participate.
Now, looking at the assigned Zones for that question, this was never done.
Can I ask why not?
Adding that zone would have surely gotten you more feedback.

How do you get an answer to that question "Now"?
You probably cant, the question is to old.
Just request a delete.

As far as *This* question is concerned, the points should go to LSMConsulting.

JeffCoachman
Avatar of Sar1973

ASKER

Jeff, I am not able to shift the question by adding to the Exchange Zone, as you said. Can you do that for me? Thanx.
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sar1973,

...And being that this q will be deleted, there was no need to "Accept" my post.
;-)

Jeff