sendgrid-rails icon indicating copy to clipboard operation
sendgrid-rails copied to clipboard

Ability to turn off using to: field in x-smtp header

Open jcavena opened this issue 12 years ago • 3 comments
trafficstars

I've found that using x-smtp's to: key and moving the TO addresses to it, Sendgrid does not consider or use the CC and BCC fields in the regular mail header. It is not always desired to send an email using TO to someone you intended to CC or BCC, so perhaps making this an option in the notifier method rather than a hard setting would be beneficial. This way we can use the to: key in the x-smtp header when desired, and use regular TO in mail header when it's not.

jcavena avatar Aug 08 '13 19:08 jcavena

We just ran into this problem as well. I might have time to add this feature early next week.

DouweM avatar Apr 10 '14 16:04 DouweM

@jcavena do you think that switch should be at the Application config level, or per method switch?

@DouweM any chance you will be able to address that issue?

Thanks.

paveltyk avatar Oct 21 '14 08:10 paveltyk

@PavelTyk I solved this with commit https://github.com/DouweM/sendgrid-rails/commit/69a311583ea094f89805d7c5408b44f9e0489734 in the branch for my PR #10, which I'm on rather than master.

DouweM avatar Oct 21 '14 08:10 DouweM