Sendmail Wamp Php

蓝咒 提交于 2019-11-26 13:22:59
Rumpelstinsk

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.

  1. Right click on sendmail.exe
  2. Properties
  3. Compatibility
  4. Change the configuration for all users
  5. Execute as Windows XP SP 3
  6. Execute as adminitrator

And save :D

2 days lost in this nonsense :(

As an extension to the accepted answer:

If you are running the send mail function in PHP, a dialog may come up to ask you to run the 'send mail' app as admin. Upon cliking 'Yes' it will show a command prompt dialog and nothing will happen and you page will hang until the command prompt is closed. The mail function will even return "True", but in reality no message was sent.

To solve this issue, do the instructions same as the accepted answer and ALSO run the server (or IDE) as admin, by either:

1) Right clicking the program (e.g. server, ide, command prompt) and clicking "Run as Administer"

2) OR Right click program> properties> compatiblity> Tick execute as admin

For instance if your using the PHP in built server, run the command prompt as admin and start the server as normal using

C:\wamp\bin\php\php5.5.12\php.exe -S localhost:80 -t C:\Users\path\to\rootFolder

Of course change the file paths to suit your needs.

Hope this helps someone!!! Spent ages on this!

juan.conde

The problem is that sendmail has to be run as an administrator. This is the solution to help any one on my situation.

  1. Right click on sendmail.exe
  2. Properties
  3. Compatibility
  4. Change the configuration for all users
  5. Execute as Windows XP SP 3
  6. Execute as adminitrator
  7. if you using gmail you need create new password "Your application-specific passwords"

On Windows 10, I found the only method that worked was to run the Compatibility Troubleshooter.

  1. Right click on sendmail.exe
  2. Click "Properties"
  3. Select the Compatibility tab.
  4. Click "Run Compatibility Troubleshooter".
  5. Let windows fix it automatically.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!