Home > Software engineering >  How to upload copy of sent with smtp email
How to upload copy of sent with smtp email

Time:07-29

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:

  1. Send email with smtp and bcc to own email.
  2. Move/upload email with imap to sent folder.
  3. For polling new messages use UID which is auto increment, so just remember the last processed and download all that is more than that.
  • Related