copying message to IMAP "sent" folder
Posted: Thu Apr 19, 2007 11:41 am
hi again all,
so i've got a webmail app, and after i fire the "send" command on my message, i'd like to copy it to INBOX.Sent automatically.
in the past i've used the php command "imap_append". however, since upgrading to swiftmailer, i'm not sure of the best way to form the content string for that function.
so far i've tried the following. $message is my Swift_Message
the code above DOES place a message in my sent folder. it has the correct subject and timestamp, as well as the content-type, mime version, and user-agent. however, it's missing the recipient and the actual message body.
any suggestions?
so i've got a webmail app, and after i fire the "send" command on my message, i'd like to copy it to INBOX.Sent automatically.
in the past i've used the php command "imap_append". however, since upgrading to swiftmailer, i'm not sure of the best way to form the content string for that function.
so far i've tried the following. $message is my Swift_Message
Code: Select all
imap_append($mailCon,$conString."INBOX.Sent",$message->headers->build()."\r\n".$message->getBody()."\r\n");any suggestions?