Saving a copy of a sent mail with IMAP functions
Posted: Wed Sep 17, 2003 5:16 am
Hi!
I've completed my PHP code for sending MIME emails, but I have a question: how can I save a copy of the sent email? I thought send the same email to the sender's account with an special subject,(e.g. if I had sent a email with the subject 'no subject', send to my account the same email with the subject 'to_save_copy_no subject'). After that, the webmail client should move that email to 'sent-mail' folder, removing the 'to_save_copy_' prefix.
Is there a better method? Reviewing PHP IMAP functions I've not found any.
Thanks a lot!
I've completed my PHP code for sending MIME emails, but I have a question: how can I save a copy of the sent email? I thought send the same email to the sender's account with an special subject,(e.g. if I had sent a email with the subject 'no subject', send to my account the same email with the subject 'to_save_copy_no subject'). After that, the webmail client should move that email to 'sent-mail' folder, removing the 'to_save_copy_' prefix.
Is there a better method? Reviewing PHP IMAP functions I've not found any.
Thanks a lot!