openshift email sends from terminal but not from php -


i'm using openshift , have problem sending email.

it works fine when logged in via ssh, eg:

echo “test postfix” | mail -s “test1″ me@yahoo.com 

however if want send email php code this:

if (mail ('me@yahoo.com', "test postfix", "test mail postfix", "from: somebody@example.com"))   echo "mail sent succesfully"; else    echo "couldn't send mail"; 

it writes "mail sent succesfully", no email arrives :( tried without header too, it's same.

checked settings smtp, sendmail_path, sendmail_from , smtp_port, both php -i , phpinfo(). same:

  • smtp_port=25
  • sendmail_path=(the path sendmail)
  • smtp=localhost (also tried ini_set("smtp", "smtp.mysmtp.com")).

error.log contains no error. can't find email.logs.

can suggest solution?

as far know, need real sender account in order make it. that's why other answers suggest plugins/libraries. need provide not valid smtp server, account , pass. agreed however, lacks information mail not being sent.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -