MAPI

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Trying to send 50 e-mails from Access using VBA to
automate the process so that end user does not have to
interface with program.

Code looks Like:
Set objMAPI = objOutlook.GetNamespace("MAPI")
Set objMailItem = objOutlook.CreateItem(olMailItem)
With objMailItem
.To = SendTo
.Subject = SendSubject
.Body = SendText
.Send
End With

However every time I get the message box of
"A program is trying tosutomaticall send e-mail on your
behalf." (etc.)

Is there any way of blocking this message box?
 
Back
Top