I use go-mail library to send emails with smtp. But I faced common issue that sent emails won't appear in sent folder. Googling I found that the only way to solve it is to upload sent email though imap.
The question is how do I obtain copy of sent email with smtp email?
CodePudding user response:
The question is how do I obtain copy of sent email with smtp email?
You can't. SMTP is just for delivering mail. There is no concept of users mailboxes and specifically the Sent folder within SMTP.
CodePudding user response:
We've implemented the following approach and it works for us:
- Send email with smtp and bcc to own email.
- Move/upload email with imap to sent folder.
- For polling new messages use UID which is auto increment, so just remember the last processed and download all that is more than that.