Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Inline image removal in scrip
PostPosted: 2010-10-08 12:02 
New user
New user

Joined: 2010-10-08 11:55
Posts: 1
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group