php - PHPMailer Could not instantiate mail function -


i'm using simple code:

$mailer = new phpmailer(); $mailer->ismail(); $mailer->ishtml(true); $mailer->charset = 'utf-8'; $mailer->from = 'from@domain.com'; $mailer->sender = $this->title; $mailer->fromname = site_title; $mailer->subject = $this->theme; $mailer->body = $this->text; $mailer->addaddress($this->mail); $result = $mailer->send(); 

subject, body, fromname, sender same. , works email's, doesn't work other emails same domain names. example, works email: some@mydomain.com, doesn't work someanother@mydomain.com phpmailer send me errorinfo: not instantiate mail function.

with cmd can send email on address next command:

 echo "bla bla" | /usr/sbin/sendmail -f from@domain.com -v someanother@mydomain.com -t -i 

php ini: sendmail_path = /usr/sbin/sendmail -t -i

php ver: 5.5 phpmailer ver: 5.2.7

i'll greatful assistance!

the -f in sendmail command should not have space between , sender address, should -ffrom@domain.com not -f from@domain.com. built in phpmailer's command lines when calls sendmail, doubt that's problem.

the parameter passed called envelope sender , should email address (it's bounces go). not have same address, is. setting $mailer->sender = $this->title; suspect in $this->title not email address.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -