How to upload copy of sent with smtp email - go

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?

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.

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.

Related

EWS email exchange: getting message-id from a mail from Sent items

I'm developping a tool that allow to handle and move emails in Exchange.
For moving the mails I do need the message-Id. My issue is that when I intercept mails stored in a folder, I also get sent emails. For those mail, i do not retrieve any Message-Id.
My issue is that i met the following case: one sent email was found in the inbox folder. Unfortunatelly, I do not get any message-Id when i get the information details. Is there a way to get this information from this mail ?

Mails sent using javamail aren't found in the sent folder of Outlook

I am using javamail for Sending mails using Office365 account. I couldn't find the sent mails in the sent folder of my outlook. Interestingly, I could find the mails in sent folder if I use EWS for sending mail. What am i missing here?
Currently, messages sent though Office 365 SMTP are not copied to the Sent Items folder.
That might change in the future.

Is there an API to get e-mail smtp information (for GMail)

I want to send an e-mail using gmail API.
I want to know if the email was received successfully. And if not, what the problem. (Such as SMTP Log)
I can use Google Admin G-Suite if need.
How can I do it?
Thank you.
What you are looking for is Request read receipt after an email is sent. This would notify the sender when the recipient reads the email.
This is not something that is currently available in the gmail api. you may want to consider submitting a feature request here

Not able to send email to Slack Channel through a linux system using mailx

I have written a script that is sending emails as an attachment to several email ids but email is not only being sent to Slack channel email address. Although I am able to send the email to slack channel email address if I send it through outlook.
Do I need to do any additional settings or anything in Slack ?
It was because of some authorization issue by our ISP which was not allowing to send the email to Slack. It works fine if I tried to send email from my local to Slack.

How to send email with Mailgun to Gmail with content

I'm using Mailgun to send email through SMTP.
It is working perfectly except that if I send two email with different content, Gmail stacks then in a list and the second one has no content. I don't understand why. In my Mailgun log it shows it was sent with content.
Should I change the subject?

Resources