Im having some trouble getting PHP mailer to send mail. Its running on localhost (WAMP) and ive got the same script im using now working before but on a host so im guessing theres a setting i need to change somewhere. Ive had a look and cant find anything!
Im getting this error when i try to send mail: Could not execute: /usr/sbin/sendmail
If you need more information let me know, cant think of anything at the moment…
You need an SMTP server installed on your local dev environment. There are some free ones out there.
/usr/sbin/sendmail is the path to which ever mail app is handling your outgoing mail and this path is defined in your PHP.ini file. Your seeing the default path.
Unless your testing some html newsletter then i don’t really see the point. If your only catching an enquiry form submission then you could leave this until you go live and restrict access to the page / site through a .htaccess while you test. That’s how i would do it anyway.
I’m trying to do the same as you in my Wamp. I found this article. Since I’m using gmail as my main e-mail, I think this is a good option for me:
I went to php.ini and change to smpt.gmail.com
and my e-mail adress. Now the article says that gmail doesn’t use port 25 so, I don’t know if I have to change port 25 to something else?
I don’t know where to turn off TLS and to check username and password?
Is anybody familiar with gmail as a smtp server?