未在cronjob sugarCRM中发送电子邮件

未在cronjob sugarCRM中发送电子邮件,sugarcrm,Sugarcrm,我已经成功地从我的本地主机使用gmail设置了电子邮件设置,我的sugar实例正在发送测试邮件。我还完成了cron作业设置并进行了测试。 当我尝试在无法发送的cron作业中发送电子邮件时,就会出现问题。我使用的基本代码是 require_once('include/SugarPHPMailer.php'); $emailObj = new Email(); $defaults = $emailObj->getSystemDefaultEmail(); $m

我已经成功地从我的本地主机使用gmail设置了电子邮件设置,我的sugar实例正在发送测试邮件。我还完成了cron作业设置并进行了测试。 当我尝试在无法发送的cron作业中发送电子邮件时,就会出现问题。我使用的基本代码是

    require_once('include/SugarPHPMailer.php'); 
    $emailObj = new Email();
    $defaults = $emailObj->getSystemDefaultEmail();
    $mail = new SugarPHPMailer();
    $mail->setMailerForSystem();
    $mail->From = $defaults['email'];
    $mail->FromName = $defaults['name'];
    $mail->Subject=from_html($bean->name);
    $mail->Body="hello this is testing ....!";
    $mail->prepForOutbound();
    $mail->AddAddress('abc@yahoo.com'); 
    @$mail->Send();
以下错误显示在致命日志中

09/24/12 10:58:07 [4560][1][FATAL] SMTP -> ERROR: EHLO not accepted from server. Code: , Reply: 
09/24/12 10:58:07 [4560][1][FATAL] SMTP -> ERROR: HELO not accepted from server. Code: , Reply: 
09/24/12 10:58:07 [4560][1][FATAL] SMTP -> ERROR:AUTH not accepted from server. Code:  Reply: 
09/24/12 10:58:07 [4560][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
09/24/12 10:58:07 [4560][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not connect to SMTP host.
09/24/12 10:58:07 [4560][1][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
有时它会给出下面的一个

  09/24/12 11:01:07 [832][1][FATAL] SugarPHPMailer encountered an error: Language string failed to load: tls

有人能帮忙吗?

您能确认系统电子邮件设置设置是否正确吗?看起来似乎不是。是的,设置了电子邮件设置,我通过发送测试邮件确认。您在这里看到任何PHP错误吗?我在想,默认的电子邮件设置是如何加载的。