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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -