📜  php 中的 mail() 函数不起作用 - 无论代码示例

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

代码示例1
CONFIGURE THESE SETUPS:

in your php.ini:
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = my-gmail-id@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"


in your sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=my-gmail-id@gmail.com
auth_password=my-gmail-password
force_sender=my-gmail-id@gmail.com