jstevens124
08-21-2013, 06:21 PM
When sending an email I have code running that attempts to create an exact replica of the email in a New Mail item. The problem I'm running into is that any images in the body of the email are being removed. I included an example of what happens to the picture in this new mail item.
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.Importance = item.Importance
.SentOnBehalfOfName = strFromName
.To = strToRecip
.CC = strCCRecip
.BCC = strBCCRecip
.Subject = item.Subject & " [" & lngUID & "]"
.HTMLBody = "<HTML><BODY>" & item.HTMLBody & "</BODY></HTML>"
.Recipients.ResolveAll
.Save
.Close
End With
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With OutMail
.Importance = item.Importance
.SentOnBehalfOfName = strFromName
.To = strToRecip
.CC = strCCRecip
.BCC = strBCCRecip
.Subject = item.Subject & " [" & lngUID & "]"
.HTMLBody = "<HTML><BODY>" & item.HTMLBody & "</BODY></HTML>"
.Recipients.ResolveAll
.Save
.Close
End With