PHP mail() not working, but sendmail through command prompt works?

  • Posted on January 5, 2014
  • me279070Asked by me279070

I cant get my mail() to work. I set the php sendmail_path to “sendmail -t -i” but that still isnt working. i have installed postfix and set it up. It was working a few days ago, But I changed postfix to use my google account. but then my google account reached max mail sending. (which i didn’t know it could do) so then I tried to put it back to normal and it didn’t work. and ive reinstalled postfix like 3 times by now using this tutorial

and its just still not working. and ideas?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Try running <pre>sudo apt-get purge postfix <br>sudo apt-get autoremove --purge <br>DEBIAN_FRONTEND=noninteractive sudo apt-get install postfix -y</pre> <br>Then follow <a href=“”></a>. <br>Does that fix it?