J
JohnJohn
Hello.
I am using the Visual Basic and the Microsoft Word 11.0 Object Library to
automate mail merge and send the output via email. I have almost everything
working. I used Microsoft's examples to figure out how to do this. I ran
the following example code right from
http://msdn.microsoft.com/library/d...tml/woproMailAddressFieldName1_HV05211939.asp:
With Documents("FormLetter.doc").MailMerge
.MailAddressFieldName = "Email"
.MailSubject = "Amazing offer"
.Destination = wdSendToEmail
.Execute
End With
....having filled in all the merge fields appropriately. Upon the .Execute
call, I get the following prompt:
"A program is trying to automatically send e-mail on your behalf.
Do you want to allow this? If this is unexpected, it may be a virus and you
should choose "No"."
I click "Yes" to allow the email. It APPEARS that it's working, but no
email is ever sent or received by any of the recipients. I assume that it's
using Outlook to send the email, and none of the messages ever appear in the
out box or in sent messages, and none are ever received.
Am I missing something?
Thanks for sitting there and reading this long email!
John
I am using the Visual Basic and the Microsoft Word 11.0 Object Library to
automate mail merge and send the output via email. I have almost everything
working. I used Microsoft's examples to figure out how to do this. I ran
the following example code right from
http://msdn.microsoft.com/library/d...tml/woproMailAddressFieldName1_HV05211939.asp:
With Documents("FormLetter.doc").MailMerge
.MailAddressFieldName = "Email"
.MailSubject = "Amazing offer"
.Destination = wdSendToEmail
.Execute
End With
....having filled in all the merge fields appropriately. Upon the .Execute
call, I get the following prompt:
"A program is trying to automatically send e-mail on your behalf.
Do you want to allow this? If this is unexpected, it may be a virus and you
should choose "No"."
I click "Yes" to allow the email. It APPEARS that it's working, but no
email is ever sent or received by any of the recipients. I assume that it's
using Outlook to send the email, and none of the messages ever appear in the
out box or in sent messages, and none are ever received.
Am I missing something?
Thanks for sitting there and reading this long email!
John