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.
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:
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
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.
This code works with Olk2000: ".ReadReceiptRequested = True"
I still cannot find a ".From="email@provider.it" command.
Jeffrey Coachman
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
Scott McDaniel (EE MVE )
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:
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?
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.
Sar1973
ASKER
Could you also tell me how to set a delivery time of my email? (es. ".deliver=#01/01/2009 12:00")
Scott McDaniel (EE MVE )
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".
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.
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.
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