Search code examples
mailgunbcc

Do I have to specify a 'to' recipient?


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.


Solution

  • 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 [email protected]) 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/en/latest/api-mailinglists.html