getkirby-v2 / toolkit

This is the deprecated toolkit for Kirby v2.
http://getkirby.com
81 stars 50 forks source link

Amazon SES Mail Service: Do not set cc, bcc and reply to parameters if empty #273

Closed tillprochaska closed 3 years ago

tillprochaska commented 6 years ago

The SES service currently sets the Destination.CcAddresses.member.N, Destination.BccAddresses.member.N and the ReplyToAddresses.member.N parameters even if no cc, bcc or reply to address is set. While all three aren’t required, SES will throw an InvalidParameterValue error if the parameters are set but empty.

Also, I think the ReturnPath shouldn’t be set to the same value as the replyTo option implicitly as this address needs to be verified unlike the reply to address.