Hi
I'm implementing a VBS script to process attachments in messgaes.
If the message comes from Apple's mail app and the use dragged images into the message (rather than attach them) these images are inline to the message.
In my script I can extract the images as attachments, but any attempt to remove them fails:
eg. Attachments.clear()
If I replace the HTMLBody with new html the images still exist in the message. There seems to be no way to remove them from the message.
Code:
oMessage.Body = "Converted"
oMessage.HTMLBody = "<html><body><h3>Converted</h3></body></head>"
oMessage.Attachments.Clear
oMessage.Attachments.Add MessageFolder & "\replaced.zip"
oMessage.Save
The delivered message has the images inside the zip file (thats what I'm trying to do) but they are also there as attachments if added in a drag & drop manner described above.
Did I miss something?