ogbofjnr
ogbofjnr

Reputation: 2028

How to upload copy of sent with smtp email

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?

Upvotes: 1

Views: 1311

Answers (2)

ogbofjnr
ogbofjnr

Reputation: 2028

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.

Upvotes: 1

Steffen Ullrich
Steffen Ullrich

Reputation: 123531

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.

Upvotes: 0

Related Questions