Forward attachment(s) with CreateObject("CDO.Message") using script
Posted on 2004-11-22
I have a script that checks mail onsave ( Exchange evt sink on user mailbox ) and if the mail contains certain keywords , the mail is copied to HR.
I want to forward attachments also that are with the first mail....
Im using msgobj for received mail and msgobj1 for mail generated by script...
If msgobj.subject="Joke" then......
msgobj1.subject = "Flagged Mail Sent"
msgobj1.HTMLbody = strBody
msgobj1.To = "firstname.lastname@example.org"
msgobj1.From = msgobj.From