elixir-sparkpost icon indicating copy to clipboard operation
elixir-sparkpost copied to clipboard

Add support in Address structure for BCC and CC

Open Sam23D opened this issue 8 years ago • 1 comments

Sam23D avatar Oct 25 '17 16:10 Sam23D

@Sam23D Did you have an idea of how this would work?

It's an interesting one since the SparkPost API itself doesn't have separate support for CC and BCC`. It's really just a convention where:

  • we add all the CC and BCC recipients to the recipients list
  • we use a single header_to for all recipients, listing the To recipients
  • we set a custom CC header to name all the CC recipients

If we added CC and BCC fields to Address, we'd presumably then use those steps to transform the request which before sending it on the wire?

ewandennis avatar Nov 09 '17 15:11 ewandennis