关于如何在GoDaddy服务器中使用PHPMailer设置SMTP的问题 [英] Issue on how to setup SMTP using PHPMailer in GoDaddy server

查看:384
本文介绍了关于如何在GoDaddy服务器中使用PHPMailer设置SMTP的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在研究3周了,如何使用PHPMailer for GoDaddy来配置SMTP,但是没有一个可以使用。尝试联系GoDaddy支持,但尚未回覆。而且我还没有看到有关如何在其服务器上设置SMTP的文档。

I've been researching for 3 weeks now on how to configure SMTP using PHPMailer for GoDaddy but none of it works. Tried contacting the GoDaddy support but they haven't replied yet. And I haven't seen any documentation on how to setup SMTP on their server.

我已经多次更改主机,测试了它们,但没有一个成功发送电子邮件。我超过了错误(使用PHPMailer调试),但是当我检查了电子邮件,我看不到任何收到的消息。

I've been changing the Host many times, tested them, but none of it were successful in sending the email. I surpassed the error (using PHPMailer debug) but when I checked the email, I couldn't see any messages being received.

这些是我试过的主机:

$mail->Host = "smtp.office365.com";
$mail->Host = "smtpout.secureserver.net";
$mail->Host = "relay-hosting.secureserver.net";
$mail->Host = "localhost";

此外,我尝试过PHPMailer故障排除中的设置,但它将无法正常工作。 p>

Also, I've tried the settings in PHPMailer troubleshooting, but it won't work.

$mail->isSMTP();
$mail->Host = 'relay-hosting.secureserver.net';
$mail->Port = 25;
$mail->SMTPAuth = false;
$mail->SMTPSecure = false;

我目前的设置是:

$mail->isSMTP();
$mail->Host = "smtpout.secureserver.net";
$mail->Port = 80;
$mail->SMTPAuth = true;

//Enable SMTP debugging. 
$mail->SMTPDebug = 4;

//Provide username and password     
$mail->Username = "email@email.com";                 
$mail->Password = "password"; 

$mail->From = "email@email.com";
$mail->FromName = "From Name";

$mail->addAddress("email@email.com", "Name");

正在使用的电子邮件是GoDaddy中创建的电子邮件,它是Office 365 Email Essentials。在电子邮件& Office(不是工作区电子邮件或从cPanel)。我正在使用经济型Linux主机与cPanel软件包。

The email being used is the email created in GoDaddy which is Office 365 Email Essentials. Under Email & Office (Not Workspace Email or from cPanel). I'm using Economy Linux Hosting with cPanel package.

我是新来的GoDaddy,所以这个问题对我来说是新的。在一些托管提供商,如InMotion,我从来没有遇到这个问题。

I'm new to GoDaddy so this problem is new to me. In some hosting providers like InMotion, I've never encountered this problem.

推荐答案

Godaddy几乎没有更改服务器中继设置。我们不再需要单独提及中继服务器设置了。以下更改将适用于PHPMailer。

Godaddy made few changes the server relay setting. we don't need to separately mention the relay server settings anymore. following changes will works fine with PHPMailer.

$ mail = new PHPMailer;

$ mail-> SMTPDebug = 0;

$ mail-> isSMTP();

$ mail-> Host ='localhost' code>

$mail->Host = 'localhost';

$ mail-> Port = 25;

$ mail-> ssl = false;

$ mail-> authentication = false;

这篇关于关于如何在GoDaddy服务器中使用PHPMailer设置SMTP的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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