Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emailing from Access 2002

Status
Not open for further replies.

TanyaSealey

Programmer
Jul 17, 2002
10
0
0
GB
The default security features in Outlook 2002 mean that when I programatically email from Access the user is prompted with the following message: A program is trying to automatically send e-mail on your behalf. Do you want to allow this?.

This makes large mail-outs virtually impossible to run. I've used the following code:

Dim objNewMail As Outlook.MailItem
Set objNewMail = golApp.CreateItem(olMailItem)
Set golNameSpace = golApp.GetNamespace("MAPI")

I've also tried SendObject and the same thing happens.

Has anyone found a way to change the default settings, or found a way to access Outlook without this message occurring?

Thanks.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top