dont try to send if there is no smtpAccount

This commit is contained in:
Klaus Leithoff 2015-04-21 14:23:59 +00:00
parent 52a0c998ee
commit abd6800a89

View File

@ -444,6 +444,11 @@ class egw_mailer extends Horde_Mime_Mail
try
{
$smtpAcc = emailadmin_account::get_default(true,false,false);
if (!$smtpAcc)
{
error_log(__METHOD__.__LINE__.'#'." Error: no SMTP Account available for ".__METHOD__);
return false;
}
//error_log(__METHOD__.__LINE__.'#'.array2string($smtpAcc));
$mail = new egw_mailer($smtpAcc);
$method = array();