When sending mails via SMTP via a script or otherwise, the sent mails don't get stored into the Sent folder in webmail. Is there a setting where I can have all mails sent via SMTP to be shown in the Sent folder of webmail ?
This is for the owner to see what mails are going through his account not via webmail. Possible ?
anjanesh Storing mail in a folder is done with IMAP. If you want your script to store mail in a folder then you'll have to build that functionality into your script.
Ok, I asked this because if I send a mail via SMTP from a gmail account, the mail get into the Sent folder too. So was wondering if this is not by default in mail systems.
anjanesh can you clarify?
If I send an email, say via swiftmailer (PHP) through a gmail account (SMTP), the mail that is sent is also seen in the Sent folder of the gmail account.
anjanesh interesting, I didn't know Gmail did that.
Our SMTP and IMAP are completely separate systems and at this time we don't have anything set up to copy sent messages on the SMTP over to a mail user. I'll make a note of your interest in this.
Now-a-days, Gmail / G Suite isn't allowing sending mails via script without 2-FA, so solution is now to use other email servers.