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(47): Zend_Mail->send()
#3 {main}
thrown in /public_html/library/Zend/Mail/Transport/Sendmail.php on line
137<br />
David Muir wrote:
>
>
> whisher wrote:
>>
>> Hi,is there a way to send an email with
>> multiple Cc.
>> With this snippet:
>> $body = 'Hi all,Alan';
>> $mail = new Zend_Mail();
>> $mail->setFrom('[email protected]', 'Alan');
>> $mail->addTo('[email protected]', 'Alan');
>> $mail->addCc('[email protected]', 'Someone Else');
>> $mail->addCc('[email protected]', 'Another Recipient');
>>
>> $mail->setSubject('Basketball practice this week');
>> $mail->setBodyText($body);
>>
>> $mail->send();
>>
>>
>> I got a Fatal error.
>>
>> Bye.
>>
>> Ps
>> I also tried passing an array but it doesn't work.
>>
>
> Kind of pointless to ask how to fix an error without letting us know what
> the error is, isn't it?
>
> Cheers,
> David
>
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Send-mail-with-multiple-Cc-tp3556120p3560656.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]