php - Amazon SES : Message sending failed - The following SMTP error was encountered: 552 5. 3.4 消息太长

标签 php amazon-web-services email smtp amazon-ses

我发送了带有 7MB 附件文件的邮件,然后出现以下错误。我该如何解决?

220 email-smtp.amazonaws.com ESMTP SimpleEmailService-d-8ND3U1R22 5Eg0poz3kAZNziS4R0Qn
hello: 250-email-smtp.amazonaws.com
250-8BITMIME
250-SIZE 10485760
250-STARTTLS
250-AUTH PLAIN LOGIN
250 Ok
starttls: 220 Ready to start TLS
hello: 250-email-smtp.amazonaws.com
250-8BITMIME
250-SIZE 10485760
250-STARTTLS
250-AUTH PLAIN LOGIN
250 Ok
from: 250 Ok
to: 250 Ok
data: 354 End data with .
552 5.3.4 Message is too long.
The following SMTP error was encountered: 552 5.3.4 Message is too long.
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

最佳答案

AWS SES 限制文档位于 https://docs.aws.amazon.com/ses/latest/DeveloperGuide/quotas.html (Amazon SES 中的服务配额):

Resource: Maximum message size (including attachments)


Default Quota: 10 MB per message (after base64 encoding).


Eligible for Increase?: No


如果您的电子邮件超过此配额,您将收到回复 552 5.3.4 Message is too long .

关于php - Amazon SES : Message sending failed - The following SMTP error was encountered: 552 5. 3.4 消息太长,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59797817/

相关文章:

php - 我应该将哪个 session 库与 CodeIgniter 一起使用?

php - 来自精确表格的数据

amazon-web-services - AWS Cloudformation 包不会更新代码

php - 在 PHP 中通过电子邮件发送短信时遇到问题

Javascript 电子邮件验证 - 有帮助吗?

php从公司名称获取谷歌地点详细信息

php - PHP 脚本可以发送到 MySQL TEXT 字段的最大数据量?

amazon-web-services - Boto3 错误 : The AWS Access Key Id you provided does not exist in our records

json - 无法将 `json` 字符串传递到 Jenkins 管道中的 `sh` 步骤

python - 检查值是否存在于数据框中并在字典中找到它