Sending a mail from Access to Outlook

  • Thread starter Thread starter Warrio
  • Start date Start date
W

Warrio

Hello!

I have a form in Access that sends mails through an Office Outlook profile.
DoCmd.SendObject , , , "(e-mail address removed)", , , "subject", "Text", False
'So the email is sent without being displayed

This works perfectly, but Outlook displays an alert message saying:
"A program is trying to automatically send email on your behalf.
Do you want to allow this?
If this unexpected, it may be a virus and should choose No." [Yes] [No]

How can we avoid this message? so I can send my emails on one row.

Thanks for any suggestion
 
The command
DoCmd.SetWarnings False doesn't work..

the message is displayed by Outlook not from Access
maybe there is an option that I don't see and can be disabled to shut down
this security...










see your other post in forms.
-----Original Message-----
Hello!

I have a form in Access that sends mails through an Office Outlook profile.
DoCmd.SendObject , , , "(e-mail address removed)", , , "subject ", "Text", False
'So the email is sent without being displayed

This works perfectly, but Outlook displays an alert message saying:
"A program is trying to automatically send email on your behalf.
Do you want to allow this?
If this unexpected, it may be a virus and should choose No." [Yes] [No]

How can we avoid this message? so I can send my emails on one row.

Thanks for any suggestion


.
 
Back
Top