2017-04-16 6 views
1

에 실패했습니다.스위트 CRM SMTP는() 내 서버에 suiteCRM 설치가 이메일 캠페인

  • 전자 메일 모듈에 전자 메일 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) =를 변경하는 시도

어떤 아이디어가 작동? 감사합니다. .

파일을 편집 /modules/EmailMan/EmailManDelivery.php :

코멘트 이메일 아웃 바운드 설정을 사용하면 SMTP 외부 계정없이 로컬 호스트에서 이메일을 보낼 수있는 경우

내가 아주 진절머리 나는 해결책을 발견 한

답변

0

, 그것은 작업의 줄에서 220 ~ 249 :

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

  // 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; 
//  } 

그리고이 줄을 추가

그것은 나를 위해 일합니다.

더 나은 솔루션을 기대