Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有mandrill smtp的phpMail提供连接错误_Php_Email_Smtp_Mandrill - Fatal编程技术网

带有mandrill smtp的phpMail提供连接错误

带有mandrill smtp的phpMail提供连接错误,php,email,smtp,mandrill,Php,Email,Smtp,Mandrill,我通过PHPMailer在我的网站上使用mandrill的smtp。我已正确配置了所有内容。以下是配置- $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "smtp.mandrillapp.com"; // SMTP server $mail->SMTPDebug = 2; // enables SMTP debug information (f

我通过PHPMailer在我的网站上使用mandrill的smtp。我已正确配置了所有内容。以下是配置-

$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host       = "smtp.mandrillapp.com"; // SMTP server
$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
                                           // 1 = errors and messages
                                           // 2 = messages only
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->Host       = "smtp.mandrillapp.com"; // sets the SMTP server
$mail->Port       = 587;                    // set the SMTP port for the GMAIL server
$mail->Username   = "MANDRILL_USERNAME"; // SMTP account username
$mail->Password   = "MANDRILL_KEY";
当我发送电子邮件时,它给出一个错误
SMTP->错误:无法连接到服务器:连接被拒绝(111)

我正在使用godaddy共享托管计划。
请帮忙

某些共享主机提供程序阻止所有出站SMTP连接或公共SMTP端口。您需要与GoDaddy联系,以确认您的计划是否支持出站SMTP连接(您通常需要更高级别的或VPS计划来支持大多数共享主机的出站SMTP连接)。

您可能需要根据需要更改端口--请确保我已检查了端口25,但它仍然不工作。尝试端口465与ssl类型的加密,但它没有工作,以及我相信这就是原因。谢谢。