之前用 ramnode 直接在WP的后台安装一个WP-Mail-SMTP插件即可。作者: 阳光淡蓝 时间: 2017-3-16 20:54
有没童鞋用这家主机的 或怎么解决~作者: weilai丶 时间: 2017-3-16 21:00
发工单问作者: 阳光淡蓝 时间: 2017-3-16 21:11
We do not block any port . I think this is firewall issue or something blocking inside your vps .
Possible reason: your host disables the mail () function.
This means php mail function issue ,not port 25 blocked .
If port was blocked,you will get bounced messages from mails .
This is your software mis configuration ,as this is unmanaged vps,you will need to get the issue checked by system admin .作者: 朔月 时间: 2017-3-16 21:16
function MBT_mail_smtp( $phpmailer ) {
$phpmailer->IsSMTP();
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 端口;
$phpmailer->SMTPSecure ="加密方式";
$phpmailer->Host = "smtp服务器地址";
$phpmailer->Username = "帐号";
$phpmailer->Password ="密码";
}
add_action('phpmailer_init', 'MBT_mail_smtp');
//下面这个很重要,得将发件地址改成和上面smtp邮箱一致才行。
function MBT_wp_mail_from( $original_email_address ) {