我使用 aws lightsail 托管構建 wordpress 網站。
我在 GoDaddy 中購買了我的域并使用該域 (info@ myDomain .com) 創建了自定義電子郵件 - myDomain僅用于解釋。
我正在嘗試配置聯系表格并將電子郵件發送到此電子郵件。
所以我所做的是安裝 WP Mail SMTP 并配置設定。進入設定我設定的是

然后在我添加的 SMTP 主機中

我保存了設定并發送電子郵件測驗 - 我收到了錯誤
發送測驗電子郵件時出現問題。

Versions:
WordPress: 5.8.2
WordPress MS: No
PHP: 7.4.25
WP Mail SMTP: 3.2.1
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: relay-hosting.secureserver.net
Port: 25
SMTPSecure: string(0) ""
SMTPAutoTLS: bool(false)
SMTPAuth: bool(false)
Server:
OpenSSL: OpenSSL 1.1.1d 10 Sep 2019
Debug:
Email Source: WP Mail SMTP
Mailer: Other SMTP
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
SMTP Debug:
2022-01-05 09:27:56 Connection: opening to relay-hosting.secureserver.net:25, timeout=300, options=array()
2022-01-05 09:28:27 Connection failed. Error #2: stream_socket_client(): unable to connect to relay-hosting.secureserver.net:25 (Connection timed out) [/opt/bitnami/wordpress/wp-includes/PHPMailer/SMTP.php line 388]
2022-01-05 09:28:27 SMTP ERROR: Failed to connect to server: Connection timed out (110)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
我嘗試了更多不同的 smtp 主機:
- 帶有埠 465/587 的 smtpout.secureserver.net
我與 GoDaddy 客服談了 3 個多小時 - 他們不知道如何幫助我。我閱讀了一些教程,例如:
https://il.godaddy.com/en/help/send-form-mail-using-an-smtp-relay-server-953
我仍在尋找任何答案。如何使用這些服務 GoDaddy - wordpress - Aws Lightsail 配置正確的 SMTP?
uj5u.com熱心網友回復:
從您的 Lightsail 實體中洗掉埠 25 限制:
默認情況下,AWS 會阻止所有 Lightsail 實體上埠 25 上的出站流量。要在埠 25 上發送出站流量,請請求取消此限制。
您需要請求取消限制。
或者,通過不同的埠連接到 SMTP 服務器(這在使用 TLS 時很常見)。
uj5u.com熱心網友回復:
由于 Lightsail 阻止了埠 25 上的出站流量。嘗試使用埠號 2525。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/411759.html標籤:
