How to send email from local wamp server using PHP?

Prasoon picture Prasoon · Oct 19, 2011 · Viewed 87.2k times · Source

I need to send email messages from my localhost.

I am using wamp server and my site is loaded on my own server, please could you suggest how to send emails using my localhost and PHP?

Answer

472084 picture 472084 · Oct 19, 2011

The mail() function usually doesn't work by default for things like WAMP. You will need to add details of your SMTP server to the php.ini file.

Here is a nice tutorial: http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html