View Full Version : SendMail


Zaeed
01-24-2008, 02:16 PM
just a quick question..

Is it possible to force outlook to send an email. I have code which opens Outlook with a Report as the body etc, but i want to make it send.

Is that possible?

pbaldy
01-24-2008, 02:25 PM
Sure; if you're using SendObject, one of the arguments determines whether it's sent or left open for editing by the user.

Zaeed
01-24-2008, 02:32 PM
um, not using sendmail, using MailItem
MyItem = Outlook.Application.CreateItem(olMailItem)

There is a .Send command, however that brings up a warning message asking for confirmation, with a 5 second delay till you can accept.

any ideas?

pbaldy
01-24-2008, 03:07 PM
I use a free utility called ClickYes; there's also Outlook redemption and probably other methods.

http://www.contextmagic.com/express-clickyes/