vemcogroup / laravel-sparkpost-driver

SparkPost driver to use with Laravel
MIT License
40 stars 16 forks source link

Use Json body to define mail options #31

Closed jadgray closed 1 year ago

jadgray commented 1 year ago

This PR will update to use the JSON body to provide the mailable options.

https://developers.sparkpost.com/api/transmissions/#header-request-body:~:text=%7B%0A%20%20%22options%22%3A%20%7B%0A%20%20%20%20%22click_tracking%22%3A%20false%2C%0A%20%20%20%20%22transactional%22%3A%20true%2C%0A%20%20%20%20%22ip_pool%22%3A%20%22my_ip_pool%22%2C%0A%20%20%20%20%22inline_css%22%3A%20true%0A%20%20%7D%2C

I'm unsure if Sparkpost has updated its API recently, as I haven't used it regularly. However, using the current method of setting options it doesn't work when updating the config settings.

If I'm incorrect or there are any issues with the PR please let me know.