Here are the steps for send email from localhost by wamp server with Sendmail.
- First, you need to download Sendmail zip file link
- Extract the zip file and put it on C:\wamp
- Now, you need to edit Sendmail.ini on
C:\wamp\sendmail\sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=465
[email protected]
auth_password=your_password
- Access your email account. Click the Gear Tool > Settings >
Forwarding and POP/IMAP > IMAP access. Click "Enable IMAP", then
save your changes
- Run your WAMP Server. Enable ssl_module under Apache Module.
- Next, enable php_openssl and php_sockets under PHP.
- ** Now the important part open php.ini file on
"C:\wamp\bin\php\php5.5.12\php.ini"
and
"C:\wamp\bin\apache\apache2.4.9\bin\php.ini"
set sendmail_path **
sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"
- Restart Wamp Server.
It will surely be worked.