I need to forward a selected email (which I call origEmail) with its attachment and additional text.
The code leaves off the attachment of origEmail.
The body of the forward email is taken from a template email and is merged with origEmail body.
How do I include the attachment of origEmail?
Sub forwardemailwithattachment()
Dim origEmail As MailItem
Dim forwardEmail As MailItem
Set origEmail = Application.ActiveWindow.Selection.Item(1)
Set forwardEmail = Application.CreateItemFromTemplate("insert here template location")
forwardEmail.To = "insert here email address of recipient"
forwardEmail.Subject = forwardEmail.Subject & origEmail.Subject
forwardEmail.HTMLBody = forwardEmail.HTMLBody & origEmail.Forward.HTMLBody
forwardEmail.Display
End Sub
You can try this: