humanmade / aws-ses-wp-mail

An AWS SES wp_mail() drop-in
184 stars 51 forks source link

Unset header before setting a new one #21

Closed robneu closed 7 years ago

robneu commented 7 years ago

This appears to be enough to take care of #20. The loop was reformatting the array of headers and then unsetting each one resulting in an empty array.

With this fixed, the ucwords loop seems to get the job done as far as case matching is concerned, at least in the limited test that I ran. Feel free to ignore this if you have a more elegant solution in mind.