0

我使用的是 OJS 2.4.8.1,因此,我想使用AWS SES SMTP Service,因此,我将配置文件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

发送测试后,我可以在error_log中查看以下内容:

OJS SMTPMailer: Could not authenticate

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

任何帮助都会受到好评。

4

0 回答 0