Email related procedures in class MailMerge (Word VBA)

This page presents procedures from class MailMerge related to the theme Email: MailAsAttachment and MailSubject

MailAsAttachment

True if the merge documents are sent as attachments when the mail merge destination is an email message or a fax.

With Documents("Main.doc").MailMerge 
 .MailAsAttachment = True 
 .Destination = wdSendToEmail 
 .MailSubject = "Special offer" 
 .MailAddressFieldName = "MailAddress" 
 .Execute 
End With

MailSubject

Returns or sets the subject line used when the mail merge destination is electronic mail.

With Documents("Offer.doc").MailMerge 
 .MailAddressFieldName = "EmailNames" 
 .MailSubject = "Amazing Offer" 
 .Destination = wdSendToEmail 
 .Execute 
End With