php - How to save SMTP message to sent folder? -


i working on custom mail template sender. must sent email external host smtp transfer protocol. need connect, sent email , copy/post host's sent folder.

i tried phpmailer code doesn't work.

class phpmailer_mine extends phpmailer { public function get_mail_string() {     return $this->mimeheader.$this->mimebody; }}  $mail= new phpmailer_mine();  ... code , body send attachments ...  $result=$mail->send(); if ($result) {     $mail_string=$mail->get_mail_string();     imap_append($imapstream, $folder, $mail_string, "\\seen"); } 

phpmailer works $imapstream, $folder, they? how must define them?

the problem hosting. changed server , worked out. code above ok :d other too


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -