我正在使用zend。我有以下一段代码,
....
$cust = 'test@test.com';
$list.='Also Sent Mail to following members';
foreach($m_list as $value)
{
$mail_to_manu = new Zend_Mail('utf-8');
$mail_to_manu->clearFrom();
$mail_to_manu->setBodyHtml('Text')
->setFrom('noreply@test.com', 'test admin')
->addTo($value['email'])
->setSubject('Test');
$mail_to_manu->send();
$list.=$value['manufacturers_email'].'<br/>';
}
$this->_helper->flashMessenger->addMessage('Mail send to '. $cust. ' Successfully'.$list);
$this->_redirector->gotoUrl('/index');
.....
我收到消息没有任何中断。我的消息看起来像,
Mail send to test@test.com Successfully Also Sent Mail to following members some1@example.com some2@example.com...
我需要我的消息会像,
Mail send to test@test.com Successfully
Also Sent Mail to following members,
some1@example.com
some2@example.com
...
所以我需要一个接一个的休息。是否可以在 Flash Messenger 中做到这一点。如果是,请提供建议。