Setup smtp on your server using hmailserver Windows

Last updated on May 11th, 2016 at 01:45 pm

Click to rate this tutorial!
[Total: 5 Average: 2.6]

Setup smtp on your server using hmailserver in Windows

if you are running on windows use hmailserver and configure it and send any number of mails.
DOWNLOAD HMAIL SERVER HERE

           a)Select the default settings that popup under installation window { DONT MODIFY ANYTHING JUST PRESS NEXT AND INSTALL IT }
           b)Once installed it will ask for a security password, GIVE A STRONG PASSWORD [PLEASE NOTE THIS FOR FUTURE USE]
           c)Run the hmail server admin and press finish
Here i am creating my own domain and account names. You are free to create your own provided the same should be reflected on your PHP code.
           d)Create a domain with name 127.0.0.1
           e)Click on the domain u created and select ACCOUNTS option
           f)Click on ADD and give Address as localhost and password as xxxxxx. Then click SAVE.
           g)Check the status of the hmail server and check for errors.
Make sure the hmailserver is running.
Now run your PHP code. Here is my sample SMTP php code.

$smtp = Mail::factory('smtp',
array ('host' => '127.0.0.1',
'auth' => true,
'username' => '[email protected]',
'password' => 'xxxxx'));
Click to rate this tutorial!
[Total: 5 Average: 2.6]

Leave a Reply

Your email address will not be published.