问题
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