monde-sistemas / delphi-aws-ses

Delphi client for Amazon Simple Email Service (AWS SES)
MIT License
33 stars 9 forks source link

Validate e-mail addresses #22

Closed martinusso closed 9 years ago

martinusso commented 9 years ago

In case of e-mail addresses invalid the following error occurs:

HTTP/1.1 400 Bad Request - Domain contains control or whitespace (InvalidParameterValue)

Validate the fields FromAddress, Recipients, ReplyTo, CC and BCC and return a improved message before sending emails.

esasse commented 9 years ago

I'm not sure if we should validate. I like the idea of leaving all validation to AWS.

Any particular reason you think we should validate?

martinusso commented 9 years ago

I thought I'd improve this return message, because currently we don't know even what field is invalid. But it really makes more sense to leave the responsibility to AWS. tks!