Contact Form 7 遇到問題解決方案

#godadday Contact Form 7 wordpress 遇到問題解決方案

godaddy 自建服務器+自己域名+郵件箱

遇到訂閲失敗 There was an error trying to send your message. Please try again later.

報錯:訂閲失敗

1、使用easy wp smtp進行配置
自買的服務器 去咨詢客服,客服很耐心英文一一堆問,最後說不清楚。他nn的der
自己得到一個結論,外國人sb
獲取到一個重要信息,服務器地址。自己域名設置郵件地址登錄不上。可能是我自己沒有搞明白。
服務器設置裏面有中繼服務器郵件地址,我開始沒有黨個事情。折磨人
https://sg.godaddy.com/help/find-the-smtp-relay-server-for-my-gen-4-vps-24736

端口: 25
SMTP 身份验证:错误或无
SSL 或安全连接:无
該輸入賬號密碼的都填好
測試發送,成功
2、Contact Form 7(自己也犯了錯誤發送郵件和接受郵件都是自己,自己玩蹦了)
to [you-name] (用戶訂閲郵件名,不用改,標簽自動把用戶郵件獲取到)
form 網站名字xxxx@gm.com
標題:歡迎
内容:歡迎

測試成功

直接代碼修改,前提是你沒有使用插件。否則數據會衝突的
Appearance>Theme File Editor>主题功能(functions.php)
add_action(‘phpmailer_init’, ‘mail_smtp’);

function mail_smtp( $phpmailer ) {
$phpmailer->FromName = 'China Mining Machine '; // 发件人昵称

$phpmailer->Host = ‘sg2nlvphout-v01.shr.prod.sin2.secureserver.net’; // 邮箱SMTP服务器

$phpmailer->Port = 25; // SMTP端口,不需要

$phpmailer->Username = ‘xxxx@china-miningmachine.com’; // 邮箱账户

$phpmailer->Password = ‘@xxxxx’; // 此处填写邮箱生成的授权码,不是邮箱登录密码

$phpmailer->From = ‘xxxx@china-miningmachine.com’; // 收件邮箱账户

$phpmailer->SMTPAuth = false;

$phpmailer->SMTPSecure = ‘’; // 端口25时 留空,465时 ssl,不需要改

$phpmailer->IsSMTP();

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值