Home >Backend Development >PHP Tutorial >How to Configure Sendmail with Gmail on Wamp Server for Windows 8.1: Running Sendmail as Administrator?
Sendmail Configuration with Wamp and PHP on Windows 8.1
You've encountered difficulties while attempting to configure Sendmail with your Gmail account through Wamp server on Windows 8.1. Upon investigation, you have discovered that Sendmail must be executed as an administrator to resolve the issue.
To configure Sendmail as an administrator:
With these modifications in place, you should be able to send emails through Wamp and Sendmail using port 465 and SSL. For your reference, here are the relevant Sendmail.ini and php.ini settings:
Sendmail.ini
[sendmail] smtp_server=smtp.gmail.com smtp_port=465 smtp_ssl=ssl error_logfile=error.log debug_logfile=debug.log [email protected] auth_password=mypass hostname=localhost
php.ini
[mail function] smtp_port = 465 sendmail_path="C:\wamp\sendmail\sendmail.exe -t" mail.add_x_header = On
By following these steps and running Sendmail as an administrator, you can successfully send emails through Wamp and Sendmail on your Windows 8.1 operating system.
The above is the detailed content of How to Configure Sendmail with Gmail on Wamp Server for Windows 8.1: Running Sendmail as Administrator?. For more information, please follow other related articles on the PHP Chinese website!