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?