使用Bluehost帐户设置PHPMailer [英] Setting up PHPMailer using Bluehost account

查看:102
本文介绍了使用Bluehost帐户设置PHPMailer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试联系Bluehost的支持人员,但他们不知道如何进行设置.

I tried contacting support from Bluehost but they don't know how to set this up.

我要做的是首先创建我的电子邮件帐户(VPS帐户). 然后获取我的电子邮件设置的所有详细信息.

What I did is first create my email account(VPS account). Then get all the details of my email setting.

电子邮件设置

邮件服务器用户名:notification@website.co

Mail Server Username: notification@website.co

标准(不带SSL)

传入邮件服务器:详细信息在这里

Incoming Mail Server: details here

支持的端口:143(IMAP),110

Supported Ports: 143 (IMAP), 110

(POP3)外发邮件服务器:此处详细信息

(POP3) Outgoing Mail Server: details here

支持的端口:26(服务器 需要验证)

Supported Port: 26 (server requires authentication)

因此,在我的PHPMailer代码上添加了以下内容:

So on my PHPMailer code I added this:

$mail->SMTPAuth   = true;
$mail->SMTPSecure = "ssl";
$mail->Port  = 26;  
$mail->Host = "198.xx.xxx.x";       
$mail->Username = 'notification@website.co';
$mail->Password = "myemailpassword";

但是我得到了这个错误. SMTP -> ERROR: Failed to connect to server: Connection timed out (110) SMTP Error: Could not connect to SMTP host.

But I got this error. SMTP -> ERROR: Failed to connect to server: Connection timed out (110) SMTP Error: Could not connect to SMTP host.

这是我的SMTP的新设置. 有什么帮助吗?我是设置PHPMailer SMTP的新手.

This is new setup of my SMTP. Any help? I am new in setting up PHPMailer SMTP.

我知道这与

推荐答案

在端口26上运行经过身份验证的SMTP而不进行加密只是标准操作!

Running authenticated SMTP on port 26 without encryption is anything but standard!

他们说标准(没有SSL )",但是您已输入$mail->SMTPSecure = "ssl";.

They say "Standard (without SSL)", but you've put $mail->SMTPSecure = "ssl";.

这不太可能,因为该模式需要隐式SSL(即,PHPMailer将在连接后立即开始谈论SSL),因此请按照他们所说的做,并用$mail->SMTPSecure = '';禁用它-或者根本不设置它,因为默认值.

That's unlikely to work because that mode expects implicit SSL (i.e. PHPMailer will starting talking SSL immediately it connects), so do what they say and disable it with $mail->SMTPSecure = ''; - or alternatively don't set it at all since that is the default value.

通过设置$mail->SMTPDebug = 3;

这篇关于使用Bluehost帐户设置PHPMailer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆