📜  本地主机 wamp 中的 php 邮件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:10.576000             🧑  作者: Mango

代码示例1
1) Edit C:\wamp\sendmail\sendmail.ini:

smtp_server=smtp.gmail.com
smtp_port=465
auth_username=user@gmail.com
auth_password=your_password
2) Edit php.ini and set sendmail_path

sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"