Do I have to specify a 'to' recipient?

*爱你&永不变心* 提交于 2019-12-12 03:14:12

问题


When I'm sending email via mailgun, must I specify a 'to' recipient?

In some cases, I'd prefer to specify only 'Bcc' recipients.


EDIT: I've already tried to do this on my own and I receive a

'Bad Request - 'to' parameter is missing' error.

I just wanted to know if there's another way around this, because typically you can send an email without a 'To' recipient, so long as you specify a CC or Bcc recipient.


回答1:


You may not send mail only using bcc. There is a trick I use in which I make the from and to the same address (something like info@mydomain.com) and then fill up the bcc slot with whatever I need.

You may send mail using mailing lists that does not require you to expose other email addresses.

https://documentation.mailgun.com/user_manual.html#mailing-lists




回答2:


Eventually, the SMTP call is being translated to a call to the SMTP provided which is usually not forced to have a 'to' recipient, but the best way is to perform a test where you send an email with only 'bcc' recipient (you can send it to yourself as a test'



来源:https://stackoverflow.com/questions/34400386/do-i-have-to-specify-a-to-recipient

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!