带有mandrill smtp的phpMail提供连接错误
我通过PHPMailer在我的网站上使用mandrill的smtp。我已正确配置了所有内容。以下是配置-带有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
$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类型的加密,但它没有工作,以及我相信这就是原因。谢谢。