forked from extern/egroupware
provide contact-id on errormessage on failure of mail-merge
This commit is contained in:
parent
b70f4bcd27
commit
d2a851931f
@ -1440,7 +1440,11 @@ abstract class bo_merge
|
|||||||
$retString = '';
|
$retString = '';
|
||||||
if (count($msgs['success'])>0) $retString .= count($msgs['success']).' '.(count($msgs['success'])+count($msgs['failed'])==1?lang('Message prepared for sending.'):lang('Message(s) send ok.'));//implode('<br />',$msgs['success']);
|
if (count($msgs['success'])>0) $retString .= count($msgs['success']).' '.(count($msgs['success'])+count($msgs['failed'])==1?lang('Message prepared for sending.'):lang('Message(s) send ok.'));//implode('<br />',$msgs['success']);
|
||||||
//if (strlen($retString)>0) $retString .= '<br />';
|
//if (strlen($retString)>0) $retString .= '<br />';
|
||||||
if (count($msgs['failed'])>0) $retString .= count($msgs['failed']).' '.lang('Message(s) send failed!').'=>'.implode(', ',$msgs['failed']);
|
foreach($msgs['failed'] as $c =>$e)
|
||||||
|
{
|
||||||
|
$errorString .= lang('contact').' '.lang('id').':'.$c.'->'.$e.'.';
|
||||||
|
}
|
||||||
|
if (count($msgs['failed'])>0) $retString .= count($msgs['failed']).' '.lang('Message(s) send failed!').'=>'.$errorString;
|
||||||
return $retString;
|
return $retString;
|
||||||
break;
|
break;
|
||||||
case 'application/vnd.oasis.opendocument.text':
|
case 'application/vnd.oasis.opendocument.text':
|
||||||
|
Loading…
Reference in New Issue
Block a user