How to send mail from localhost SMTP (using Wamp,Xampp or etc..)? PHP mail()
doesn't seem to work natively.
Can anybody give the instructions?
After installation, you need the following configuration to properly send mail from wampserver:
1) When you first open hMailServer Administrator, you need to add a new domain. 2) Click on the "Add Domain ..." button at the Welcome page. 3) Under the domain text field, enter your computer's IP, in this case it should be 127.0.0.1. 4) Click on the Save button. 5) Go to Settings>Protocols>SMTP and select "Delivery of Email" tab 6) Enter "localhost" in the localhost name field. 7) Click on the Save button.
If you need to send mail using a FROM addressee of another computer, you need to allow deliveries from External to External accounts. To do that, follow these steps:
1) Go to Settings>Advanced>IP Ranges and double click on "My Computer" which should have IP address of 127.0.0.1 2) Check the Allow Deliveries from External to External accounts checkbox. 3) Save settings using Save button.
(However, Windows Live/Hotmail has denied all emails coming from dynamic IPs, which most residential computers are using. The workaround is to use Gmail account )
1) Go to Settings>Protocols>SMTP and select "Delivery of Email" tab 2) Enter "smtp.gmail.com" in the Remote Host name field. 3) Enter "465" as the port number 4) Check "Server requires authentication" 5) Enter gmail address in the Username 6) Enter gmail password in the password 7) Check "Use SSL"
(Note, From field doesnt function with gmail)
*p.s. For some people it might also be needed to untick everything under require SMTP authentication
in :
You can use SendMail installation.
Use any of these methods.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With