Mandrill在我的localhost中工作正常,但在服务器上却没有。遇到以下SMTP错误:110连接超时。我在codeigniter中工作。
这是我的电子邮件配置文件:
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['priority'] = 1;
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'smtp.mandrillapp.com';
$config['smtp_port'] = '587';
$config['smtp_user'] = 'abcdefgh@gmail.com';
$config['smtp_pass'] = 'xxxxxxxxxxxxxxxxxxxxxx';
收到来自localhost的邮件。我试过调试器。我收到上面的错误。请帮忙!!!可能是什么原因?
答案 0 :(得分:0)
我认为端口被阻止,请在任何控制器中尝试:
$connection = @fsockopen('smtp.mandrillapp.com', 587);
if (is_resource($connection)){
echo 'open';
fclose($connection);
}else{
echo 'closed';
}
当我在我的网络应用上实施mandrill时,我已经遇到了这个问题。