humanmade / aws-ses-wp-mail

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

Allow a colon in the name in the From header #57

Closed kovshenin closed 11 months ago

kovshenin commented 11 months ago

Having a site name like "Foo: Bar" currently results in a malformed From header From: "Foo which ultimately fails delivery at SES. This change limits the split to only the first colon character. This is in line with Core's behavior:

https://github.com/WordPress/WordPress/blob/b691849290207fa01e439f8db6cd09091f62b394/wp-includes/pluggable.php#L291-L292