2017-04-16 96 views
1

我在我的服务器上安装了suiteCRM。套件CRM SMTP连接()电子邮件活动失败

  • 我已经在电子邮件模块上配置了电子邮件smtp服务器,它工作的很好。
  • 我在广告系列模块的“设置电子邮件”中放置了相同的配置信息。
  • 我在我的服务器上添加了cron命令。

但是,当我创建一个活动电子邮件留在队列中。我有一个日志错误:

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 
Sun Apr 16 22:53:14 2017 [25545][1][FATAL] SugarPHPMailer encountered an error: Vous n'avez pas configuré le serveur SMTP pour votre compte Mail. Configurer ou choir le serveur SMTP pour le compte Mail. 
Sun Apr 16 22:53:14 2017 [25545][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 
Sun Apr 16 22:53:14 2017 [25545][1][FATAL] Email delivery FAILURE:Array 

我曾试图关闭防火墙=>这是行不通的

我曾试图改变的PHP版本(5.6 => 5.5)=>它不工作

任何想法? 谢谢。

回答

0

我已经找到了一个非常糟糕的解决方案,它的工作,如果你可以从本地主机发送邮件没有SMTP外部帐户:

编辑文件/modules/EmailMan/EmailManDelivery.php:

评论电子邮件出站设置从管线220到249:

  // if user want to use an other outbound email account to sending... 
//  if ($current_emailmarketing->outbound_email_id) { 
//   $outboundEmailAccount = BeanFactory::getBean('OutboundEmailAccounts', 
//    $current_emailmarketing->outbound_email_id); 
// 
//   if (strtolower($outboundEmailAccount->mail_sendtype) == "smtp") { 
//    $mail->Mailer = "smtp"; 
//    $mail->Host = $outboundEmailAccount->mail_smtpserver; 
//    $mail->Port = $outboundEmailAccount->mail_smtpport; 
//    if ($outboundEmailAccount->mail_smtpssl == 1) { 
//     $mail->SMTPSecure = 'ssl'; 
//    } elseif ($outboundEmailAccount->mail_smtpssl == 2) { 
//     $mail->SMTPSecure = 'tls'; 
//    } 
//    if ($outboundEmailAccount->mail_smtpauth_req) { 
//     $mail->SMTPAuth = true; 
//     $mail->Username = $outboundEmailAccount->mail_smtpuser; 
//     $mail->Password = $outboundEmailAccount->mail_smtppass; 
//    } 
//   } else { 
//    $mail->Mailer = "sendmail"; 
//   } 
// 
//   $mail->oe->mail_smtpauth_req = $outboundEmailAccount->mail_smtpauth_req; 
//   $mail->oe->mail_smtpuser = $outboundEmailAccount->mail_smtpuser; 
//   $mail->oe->mail_smtppass = $outboundEmailAccount->mail_smtppass; 
//   $mail->oe->mail_smtpserver = $outboundEmailAccount->mail_smtpserver; 
//   $mail->oe->mail_smtpport = $outboundEmailAccount->mail_smtpport; 
//   $mail->oe->mail_smtpssl = $outboundEmailAccount->mail_smtpssl; 
//  } 

并添加此行:

$mail->Mailer = "sendmail"; 
$mail->SMTPSecure = 'ssl'; 
$mail->SMTPAuth = true; 

这对我有用。

期待更好的解决方案