Re: Copy sent mail in a mailbox folder

From: Date: Tue, 31 May 2005 04:43:07 +0000
Subject: Re: Copy sent mail in a mailbox folder
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-216027@lists.php.net to get a copy of this message
On Sat, May 28, 2005 2:58 am, Reto said: > Hi list, > > I'm sending mails with PEAR::Mail / PEAR::Mail_Mime or with PHPMailer > (http://phpmailer.sf.net). The final solution will implemented depending > on which implementation better fits my needs. > > Anyway, and that is the problem, after sending the mail I want to save a > copy of the mail in an IMAP folder called "Sent". > > I would be pleased if someone could send me a hint or a link how to > achive this. Either with PEAR or with PHPMailer generated mails. > > My first thought was to walk through the mail object and extracting all > necessary attributes and generating a new message and save this to the > mailfolder... If all else fails, you could send it to your From: address with an extra header like: X-File-In-Sent: File-In-Sent-Folder and then put a filter in your email client to filter all the stuff on that header into "Sent" Crude, but effective :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#216027) next »