Copy sent mail in a mailbox folder
| From: | Reto | Date: | Sat, 28 May 2005 09:58:20 +0000 |
| Subject: | Copy sent mail in a mailbox folder | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-215941@lists.php.net to get a copy of this message | ||
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...
Thanks in advance
reto