Removing 'on behalf of' when sending mail using MailGun

后端 未结 4 1747
渐次进展
渐次进展 2021-02-01 17:49

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

4条回答
  •  死守一世寂寞
    2021-02-01 18:08

    Have you added an mg sub domain?

    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...

提交回复
热议问题