elixir-sparkpost
elixir-sparkpost copied to clipboard
Add support in Address structure for BCC and CC
@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_tofor all recipients, listing theTorecipients - we set a custom
CCheader to name all theCCrecipients
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?