Dmitry - Outlook Warning

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top