I\'m trying to figure out how to send mails using the MailGun Golang API without having it sent \'on behalf of\'.
This is how the From address currently looks (where f
If you have added a sub-domain such as @mg.domain.com then make sure you send your emails from name@mg.domain.com
I had the same problem, as I didn't realize that I wanted to have the sender address name@domain.com but I had added - as recommended - a subdomain to mailgun: mg.domain.com.
So when I tried to send an email from name@domain.com I got "on behalf of" / "sent by" but as soon as I've used the subdomain name@mg.domain.com - the "on behalf" message is gone... stupid me...