David Muir wrote:
>
> You can't be getting the same error because the SMTP transport will not
> throw the same exception. The only exception that the SMTP transport
> throws is '_prepareHeaders requires a registered Zend_Mail object'. Is
> that what you're getting?
>
> David
>
$body = 'Hi all,Alan';
$mail = new Zend_Mail();
$mail->setFrom('[email protected]', 'Alan');
$mail->addTo('[email protected]', 'Alan');
$mail->addCc(array('human_readable1'=>'[email protected]','human_readable2'=>'[email protected]'));
$mail->setSubject('Basketball practice this week');
$mail->setBodyText($body);
$mail->send();
I got:
Fatal error: Uncaught exception 'Zend_Mail_Transport_Exception' with
message 'Unable to send mail. ' in
/public_html/library/Zend/Mail/Transport/Sendmail.php:137
Stack trace:
#0 /public_html/library/Zend/Mail/Transport/Abstract.php(348):
Zend_Mail_Transport_Sendmail->_sendMail()
#1 /public_html/library/Zend/Mail.php(1194):
Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /public_html/www/index.php(46): Zend_Mail->send()
#3 {main}
thrown in /public_html/library/Zend/Mail/Transport/Sendmail.php on line
137<br />
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Send-mail-with-multiple-Cc-tp3556120p3571400.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]