Sendmail Wamp Php
Finally I found the answer.
The problem is that sendmail has to be run as an administrator. This is the solution to help any one on my situation.
- Right click on sendmail.exe
- Properties
- Compatibility
- Change the configuration for all users
- Execute as Windows XP SP 3
- Execute as adminitrator
And save :D
2 days lost in this nonsense :(
How to send email from localhost WAMP Server to send email Gmail Hotmail or so forth?
Configuring a working email client from localhost
is quite a chore, I have spent hours of frustration attempting it. At last I have found this way to send mails (using WAMP, XAMPP, etc.):
Install hMailServer
Configure this hMailServer setting:
- Open hMailServer Administrator.
- Click the "Add domain ..." button to create a new domain.
- Under the domain text field, enter your computer's localhost IP.
- Example: 127.0.0.1 is your localhost IP.
- Click the "Save" button.
- Now go to Settings > Protocols > SMTP and select the "Delivery of Email" tab.
- Find the localhost field enter "localhost".
- Click the Save button.
Configure your Gmail account, perform following modification:
- Go to Settings > Protocols > SMTP and select "Delivery of Email" tab.
- Enter "smtp.gmail.com" in the Remote Host name field.
- Enter "465" as the port number.
- Check "Server requires authentication".
- Enter your Google Mail address in the Username field.
- Enter your Google Mail password in the password field.
- Check mark "Use SSL"
- Save all changes.
Optional
If you want to send email from another computer you need to allow deliveries from External to External accounts by following steps:
- Go to Settings > Advanced > IP Ranges and double click on "My Computer" which
should have IP address of 127.0.0.1 - Check the Allow Deliveries from External to External accounts Checkbox.
- Save settings using Save button.
Configure WAMP server to send email
Configuring a working email client from localhost is quite a chore, I have spent hours of frustration attempting it. I'm sure someone more experienced may be able to help, or they may perhaps agree with me.
If you just want to test, here is a great tool for testing mail locally, that requires almost no configuration:
http://www.toolheap.com/test-mail-server-tool/
It worked right off the bat for me, hope this helps you.
Related Topics
Initializing PHP Class Property Declarations With Simple Expressions Yields Syntax Error
PHP Fatal Error: Call to Undefined Function Json_Decode()
Utility of Http Header "Content-Type: Application/Force-Download" For Mobile
File_Get_Contents(): PHP_Network_Getaddresses: Getaddrinfo Failed: Name or Service Not Known
Laravel - Session Store Not Set on Request
Remove All Elements from Array That Do Not Start With a Certain String
Adding Months to a Date in JavaScript
Path of Assets in CSS Files in Symfony 2
Storing and Displaying Unicode String (हिन्दी) Using PHP and MySQL
Convert Var_Dump of Array Back to Array Variable
How to Setup Elasticsearch Index Structure With Multiple Entity Bindings
"Vertical" Regex Matching in an Ascii "Image"
How to Enable Curl in Wamp Server
Export MySQL Data to Excel in PHP
What Are PHP Nested Functions For