Amazon SES是否支持UTF-8电子邮件地址? [英] Does Amazon SES support UTF-8 email addresses?

查看:114
本文介绍了Amazon SES是否支持UTF-8电子邮件地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到有关此问题的详细信息,但找不到任何确认.我使用的是PHP SDK,并尝试了以下测试(以下电子邮件为例,但gmail支持电子邮件中的UTF-8字符):

I tried to find details on this but was unable to find any confirmation. I'm using the PHP SDK and tried the following test (email below is an example but gmail supports UTF-8 characters in emails):

  • 将带有SES的电子邮件发送到myemail+✖@gmail.com

我实际上是按原样使用PHP SDK发送的✖",并查看它是否在POST请求的正文中进行了编码(URL)的查询:

I actually sent the '✖' as is using the PHP SDK and looking at the query it got encoded (URL) in the body of the POST request:

Destination.ToAddresses.member.1 = myemail%2B%E2%9C%96%40gmail.com

Destination.ToAddresses.member.1=myemail%2B%E2%9C%96%40gmail.com

这是我从SES回复中得到的:

Here is what I got from the SES response:

<ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
  <Error>
    <Type>Sender</Type>
    <Code>InvalidParameterValue</Code>
    <Message>Local address contains control or whitespace</Message>
  </Error>
  <RequestId>f28c2325-5c09-11e6-9156-ef3e33b8e223</RequestId>
</ErrorResponse>

我错过了什么吗?还是不支持?如果不是,是否有计划支持它?

Did I miss something or this is not supported? and if it isn't, is there plans to support it?

推荐答案

最新的 Amazon SES开发人员指南,关于限制,Amazon SES使用标准的 RFC-822 电子邮件地址.

As stated in the latest Developer Guide of Amazon SES, regarding limits, Amazon SES is using standard RFC-822 email addresses.

RFC-822基本上将字符库限制为7位ASCII字符串. MIME在正文和某些特定的标头字段中添加了对8位字符集的支持,但对电子邮件地址以及所有带Unicode支持的标头字段进行了完全国际化,取消了ASCII格式限制和UTF-8字符集是另一个标准的一部分: RFC-6352 .

The RFC-822 basically limits the character repertoire to 7-bit ASCII strings. MIME added supports for 8-bit character sets in the body and some specific header fields but full internationalization of email addresses and in all header fields with Unicode support, removal of the ASCII repertoire limitation and UTF-8 charset are part of another standard: RFC-6352.

直到Amazon SES将其可接受的标头字段从RFC-822更改为RFC-6532,以允许电子邮件地址使用非ASCII字符,否则您将无法在Amazon SES中使用UTF-8电子邮件地址.

Until Amazon SES change its accepted header fields from RFC-822 to RFC-6532 that allows email addresses to use non-ASCII characters, you won't be able to use UTF-8 email addresses with Amazon SES.

这篇关于Amazon SES是否支持UTF-8电子邮件地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆