Avatar of Sar1973
Sar1973
Flag 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.
Microsoft Access

Avatar of undefined
Last Comment
Jeffrey Coachman

8/22/2022 - Mon
Scott McDaniel (EE MVE )

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
Jeffrey Coachman

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
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.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Sar1973

ASKER
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:

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?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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.
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".
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
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.
Sar1973

ASKER
Scott McDaniel (EE MVE )

I don't see what question 23518737 has to do with grading and closing this question.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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.
Scott McDaniel (EE MVE )

I still don't see what another question has to do with closing this one.
Sar1973

ASKER
O.k., forget it: I'll ask another.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Jeffrey Coachman

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

ASKER
Jeffrey Coachman

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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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
Jeffrey Coachman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jeffrey Coachman

Sar1973,

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

Jeff