C
Chris Freeman
I have code that I copied from Tom Wickerath, May 7, 2006 routine coding to
send a file attachment using the item.send method. Everything works fine, but
I keep getting the "A program is trying to automatically send an email on
your behalf"
Is there anyway to over ride this. i tried 'docmd.setwarnings false' but
that gave an error.
Set myObject = CreateObject("Outlook.Application")
Set myItem = myObject.CreateItem(0)
With myItem
.Subject = strSubject
.To = strRecipients
.Body = strBody
.Attachments.Add (strFullPath)
.Send
End With
Thanks for the help
send a file attachment using the item.send method. Everything works fine, but
I keep getting the "A program is trying to automatically send an email on
your behalf"
Is there anyway to over ride this. i tried 'docmd.setwarnings false' but
that gave an error.
Set myObject = CreateObject("Outlook.Application")
Set myItem = myObject.CreateItem(0)
With myItem
.Subject = strSubject
.To = strRecipients
.Body = strBody
.Attachments.Add (strFullPath)
.Send
End With
Thanks for the help