anjanesh 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 ?
sean 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.
anjanesh 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.
sean anjanesh can you clarify? Are you sending mail from a script using Gmail SMTP and the message is being stored in a Sent folder in Gmail? Or, are you sending mail from Gmail using an external SMTP server (ie a "send-as" account)?
anjanesh 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.
sean 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.
anjanesh 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.