I'm working on a product for Japanese clients and am getting an error when trying to send to email addresses like ああ@ああ.blah.jp AWS SES (simple email service) rejects the email address:
Aws::SES::Errors::InvalidParameterValue (Local address contains control or whitespace)
The SES docs say that you need to use RFC 2047 encoding which I am. ActionMailer encodes these addresses automatically so what gets sent to SES looks like:
=?UTF-8?Q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E6=83=85=E5=A0=B1=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E6=83=85=E5=A0=B1=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E6=83=85=E5=A0=B1=E3=83=A6=E3=83=BCsfd=E3=82=B6=E3=83=BC=E6=83=85=E5=A0=B1@sdfds.com?=
I don't understand why I'm getting the error.