php - How to send mail in zend with linode sendmail server -
my project set-up on linode web-server , developed in zend framework 1.12. trying send mail, using zend_mail() function not able succeed. not give error can not able send mail. while checking server configuration in phpinfo found server has send mail library directive
sendmail_path /usr/sbin/sendmail -t -i
my code below
$mail = new zend_mail(); $mail->setbodytext('this text of mail.') ->setfrom('somebody@example.com', 'some sender') ->addto('somebody_else@example.com', 'some recipient') ->setsubject('testsubject') ->send();
can me regarding changes in above code
Comments
Post a Comment