I have had the same problems, apparently this is a problem only with MS Exchange mailservers ... concerning a malformed header.

http://support.microsoft.com/kb/291828

for more info ...


Roman1975 schreef:
Warning: mail() [function.mail]: SMTP server response: 501 Mailbox syntax
incorrect - <"name" <[EMAIL PROTECTED]>> in
C:\home\t\texrdcom\project1\library\Zend\Mail\Transport\Sendmail.php on line
90

Fatal error: Uncaught exception 'Zend_Mail_Transport_Exception' with message
'Unable to send mail' in
C:\home\t\texrdcom\project1\library\Zend\Mail\Transport\Sendmail.php:92
Stack trace: #0
C:\home\t\texrdcom\project1\library\Zend\Mail\Transport\Abstract.php(333):
Zend_Mail_Transport_Sendmail->_sendMail() #1
C:\home\t\texrdcom\project1\library\Zend\Mail.php(642):
Zend_Mail_Transport_Abstract->send(Object(Zend_Mail)) #2
C:\home\t\texrdcom\project1\application\index\models\Regist.php(93):
Zend_Mail->send() #3

PHP:

 $mail = new Zend_Mail($config->mail->charset);
        $mail->setFrom($config->mail->fromEmail, 'name');
        $mail->setBodyText($body);
        $mail->setSubject($subject);
        $mail->addTo($emailTo);
        $mail->send();



Reply via email to