Trying to get bcc data for email using griddler-sendgrid gem

443 Views Asked by At

In rails 4, after reading the documentation, I can see how to get the "from" field : @email.from[:email] from the Email object, but I cannot find how to get the bcc field.

I am trying to get the bcc field of emails I am catching with the sendgrid Inbound Parse service. Any ideas how to do that?

1

There are 1 best solutions below

4
On

You can't. BCC headers are removed by the SMTP server at the time that you send the message. Each recipient gets their own envelope at that point. If this header were included in the delivered message, then anyone could see the list of blind recipients.