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 a row.

Thanks for any suggestion
 
W

Warrio

Thanks it works!

Sue Mosher said:
See http://www.outlookcode.com/d/sec.htm for your options with regard to
the "object model guard" security in Outlook 2000 SP2 and later versions.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Warrio said:
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 a row.

Thanks for any suggestion
 
G

Guest

What worked? Im having the same problem? I have read document but dont know
what to do
thanks in advance

Warrio said:
Thanks it works!

Sue Mosher said:
See http://www.outlookcode.com/d/sec.htm for your options with regard to
the "object model guard" security in Outlook 2000 SP2 and later versions.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Warrio said:
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 a row.

Thanks for any suggestion
 
S

Sue Mosher [MVP-Outlook]

You have to choose which method to choose. No one else can make that choice.
You can rewrite the code or use a tool that clicks the button for you. If
Exchange is the mail server, the administrator has the ability to suppress
the popup completely, but that would be a bad choice, since it would leave
your system open to malicious programs that want to send messages.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



idoinspire said:
What worked? Im having the same problem? I have read document but dont
know
what to do
thanks in advance

Warrio said:
Thanks it works!

"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de news: (e-mail address removed)...
See http://www.outlookcode.com/d/sec.htm for your options with regard
to
the "object model guard" security in Outlook 2000 SP2 and later
versions.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



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 a 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