SMTP Contact form PHP

Hey there, I’m not too good with PHP, however, I’m working on my website and wanted to implement the contact form. Once having the contact form inside the website and configured with the email, I get the error of “Warning: mail() has been disabled for security reasons in”. I contacted my hosting provider and they said it’s disabled for reasons of people using it to spam emails. They asked me to use SMTP to get the form working.

I was wondering if anyone in the community knows how to get the SMTP code up and running to remove this error as I am not so great with PHP. Thanks for all the help in advance.

Here is a bing search on “PHP SMTP” the top 3 or 4 results look good.

http://www.bing.com/search?q=php+smtp&qs=n&form=QBLH&pq=php+smtp&sc=8-7&sp=-1&sk=&cvid=8C28B79C38674882A588C066B2C92BC0


Here is a Youtibe video search with video tutorials on how to do it.

https://www.youtube.com/results?search_query=php+smtp

If you want to buy a book I recommend PHP/MySQL by MURACH

Then there is also the PHP manual itself that goes into details on how to implement SMTP as well as coding forums and sites like stackoverflow.

.

1 Like