Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl - Moving email from one Outlook folder to another

Status
Not open for further replies.

bdbmeag

Programmer
Oct 5, 2008
15
0
0
US
Hi,

Is there a way using Perl to move an email message in MS Outlook from one folder to another?

I've looked through documentation for Win32::OLE::Const 'Microsoft Outlook' but don't see anything about moving emails.

I'm trying to move emails sent via a script that uses Mail::Sender. On a related note, can I specify the folder using this library (this way I won't have to move the email in the first place)? Is it possible to specify this in the "from" property; or is there another property that I can use?

Code:
(ref ($sender->MailFile(
	{to => "$email",
	 cc => "$email",
	 from => 'batch@mydomain.com', ........

Thanks,

- Bruce
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top