Dmitry - Outlook Warning

G

Guest

Here is the code I am using to send an Outlook message with an attachment to
another Outlook box:

ActiveWorkbook.SendMail Recipients:="(mailbox name)", Subject:=FileName

We have some users who will click "NO" when they get the warning message.
Can I find out which option (Yes, No, Help) they have chosen with this code?

Any suggestions or help would be greatly appreciated. Thanks for the
help....Mike
 
D

Dmitry Streblechenko

AFAIK SendMail uses Simple MAPI, so I don't think you can find any
workarounds unless you switch to explicitly using the Outlook Object Model
and trapping the errors returned by MailItem.Send

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top