Guest User

Untitled

a guest
Jan 16th, 2019
562
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function save_mail($pmail)
  2. {
  3. //You can change 'Sent Mail' to any other folder or tag
  4. $path = "{outlook.office365.com:993/ssl}Sent Items.Subfolder";
  5.  
  6. //Tell your server to open an IMAP connection using the same username and password as you used for SMTP
  7. $imapStream = imap_open($path, $pmail->Username, $pmail->Password);
  8.  
  9. $result = imap_append($imapStream, $path, $pmail->getSentMIMEMessage());
  10. imap_close($imapStream);
  11. }
  12.  
  13. "{outlook.office365.com:993/imap/ssl/novalidate-cert}Sent Items/Subfolder";
  14. "{outlook.office365.com}Another Folder";
  15. "{outlook.office365.com:993/imap/ssl}Sent Items.Subfolder";
  16. "{outlook.office365.com:993/imap/ssl}INBOX";
Add Comment
Please, Sign In to add comment