Forward attachment(s) with CreateObject("CDO.Message") using script

Posted on 2004-11-22
Medium Priority
Last Modified: 2012-06-21
Hi ,
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 = "flagged@domain.com"
msgobj1.From = msgobj.From

Any ideas?



Question by:stephengriffin
1 Comment
LVL 22

Accepted Solution

kristinaw earned 250 total points
ID: 12645292
This isn't exactly what you're asking for, but I think it might be helpful anyways:



Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question