G
Guest
I've been trying to find out how to get around the Outlook 2003 warning of
programs accessing emails when sending out automated emails from Access 2003.
The current simplified code we've been using is:
Sub SendMessage()
Dim msg As Object
Dim outl As Object
Set outl = GetObject("", "Outlook.Application")
Set msg = outl.CreateItem(olMailItem)
msg.Subject = "Test email"
msg.to = "email address"
msg.Body = "This is a test."
msg.Send
End Sub
I tried entering Set outl = Application But got run time error 438.
I'm not particularly technical, so if anyone knows what I'm doing wrong,
please could you explain what I need to alter (simply!)
Thank you
programs accessing emails when sending out automated emails from Access 2003.
The current simplified code we've been using is:
Sub SendMessage()
Dim msg As Object
Dim outl As Object
Set outl = GetObject("", "Outlook.Application")
Set msg = outl.CreateItem(olMailItem)
msg.Subject = "Test email"
msg.to = "email address"
msg.Body = "This is a test."
msg.Send
End Sub
I tried entering Set outl = Application But got run time error 438.
I'm not particularly technical, so if anyone knows what I'm doing wrong,
please could you explain what I need to alter (simply!)
Thank you