Sending a mail from Access to Outlook

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
 
W

Warrio

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


.
 

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