/build/static/layout/Breadcrumb_cap_w.png

Force Outlook outbox to sent mail

Hi,

I create a vb script that sents a mail with attachment after an installation is completed. The mail is sent and is in the outbox. Unfortunatly the mail isn't sent yet. User needs to click on mail and then click sent.
Does someone know some additional code how i can make outlook sent this mail.

Thx in advance
BaldEagle

0 Comments   [ + ] Show comments

Answers (1)

Posted by: Byoung4now 19 years ago
Senior Yellow Belt
0
Found this.

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.Sender = "me@my.com"
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text."
objMessage.AddAttachment "c:\temp\readme.txt"
objMessage.Send
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ