Hi All,
I am attempting to use Zend_Mail via the default
Zend_Mail_Transport_Sendmail transport on my local Windows machine. But for
some reason I am getting error "Fatal error: Uncaught exception
'Zend_Mail_Transport_Exception' with message 'Unable to send mail' in
D:\Path\library\Zend\Mail\Transport\Sendmail.php."
Should I change any configuration info in php.ini file before I use
Zend_Mail? At present my php.ini has the below:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = [EMAIL PROTECTED]
I am attempting the following code:
require_once 'Zend/Mail.php';
$mail = new Zend_Mail();
$mail->setBodyText('This is the text of the mail.');
$mail->setFrom('[EMAIL PROTECTED]', 'Some Sender');
$mail->addTo('[EMAIL PROTECTED]', 'Some Recipient');
$mail->setSubject('TestSubject');
$mail->send();
Thanks!
Jerry
--
View this message in context:
http://www.nabble.com/Zend_Mail-Zend_Mail_Transport_Exception-tp17078193p17078193.html
Sent from the Zend Framework mailing list archive at Nabble.com.