Home > Backend Development > PHP Tutorial > How to Configure Sendmail with Gmail on Wamp Server for Windows 8.1: Running Sendmail as Administrator?

How to Configure Sendmail with Gmail on Wamp Server for Windows 8.1: Running Sendmail as Administrator?

DDD
Release: 2024-10-26 06:19:02
Original
570 people have browsed it

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:

  1. Right-click on the sendmail.exe file.
  2. Select "Properties" from the context menu.
  3. Navigate to the "Compatibility" tab.
  4. Click on the "Change settings for all users" button.
  5. Enable the checkbox labeled "Run this program as Windows XP SP3".
  6. Enable the checkbox labeled "Run this program as an administrator".
  7. Save your changes.

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
Copy after login

php.ini

[mail function]
smtp_port = 465
sendmail_path="C:\wamp\sendmail\sendmail.exe -t"
mail.add_x_header = On
Copy after login

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template