Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services OJS SMTPMailer:无法通过AWS SES验证OJS 2.4.8.1_Amazon Web Services_Email_Smtp_Amazon Ses_Ojs - Fatal编程技术网

Amazon web services OJS SMTPMailer:无法通过AWS SES验证OJS 2.4.8.1

Amazon web services OJS SMTPMailer:无法通过AWS SES验证OJS 2.4.8.1,amazon-web-services,email,smtp,amazon-ses,ojs,Amazon Web Services,Email,Smtp,Amazon Ses,Ojs,我使用的是OJS 2.4.8.1,因此,我想使用AWS SES SMTP服务,因此,我将配置文件config.inc.php配置如下: ; Use SMTP for sending mail instead of mail() smtp = On ; SMTP server settings smtp_server = email-smtp.us-east-1.amazonaws.com smtp_port = 587 ; Force the default envelope sender

我使用的是OJS 2.4.8.1,因此,我想使用AWS SES SMTP服务,因此,我将配置文件config.inc.php配置如下:

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = email-smtp.us-east-1.amazonaws.com
smtp_port = 587

; Force the default envelope sender (if present)
; force_default_envelope_sender = On

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = XXXXXXXXXX
smtp_password = XXXXXXXXXX/XXXXXXXXX

; Allow envelope sender to be specified
; allow_envelope_sender = On
发送测试后,我可以在错误日志中查看以下内容:

OJS SMTPMailer: Could not authenticate
注意事项:用户名和密码正确,我尝试添加带引号/不带引号的参数,我尝试使用25、465或587端口,但没有任何效果


欢迎提供任何帮助。

您可以添加smtp_auth=tls以及您使用的用户名和密码吗?用户名和密码是通过导航到SMTP设置从AWS中的SES控制台生成的访问和密钥。这些不是正常的访问和密钥。谢谢。使用
tls
时,我收到以下错误:
OJS SMTPMailer:未收到预期的250(2)
。这些凭据都是正确的,我使用的是相同的SMTP AWS连接,PHP脚本中没有OJS,运行良好。