Sending test emails with WampServer

Having the ability to send test emails is great especially if you frequently work on scripts that require email generation. How can we do this using WampServer?

Open the “php.ini”.

Search for the attribute called “SMTP” in the php.ini file. Gennerally you must find the line “SMTP=localhost”. Change the localhost to the smtp server name of your ISP. In general, this will be something like mail.mydomain.com.

And, there is another attribute called “smtp_port” which should be set to 25.

And finally set the sendmail_from = info@mydomain.com

Restart the apache server so that PHP modules and attributes will be reloaded.

 

 

 

Post A Comment

Anti-Spam Quiz: