【发布时间】:2012-04-14 01:39:07
【问题描述】:
我正在尝试使用 xampplite 版本 1.7.7 发送电子邮件。
我将我的 PHP.ini 文件更改为以下内容:
[mail function]
; For Win32 only.
; http://php.net/smtp
;SMTP = localhost
; http://php.net/smtp-port
;smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"\xampp portable\sendmail\sendmail.exe\" -t"
我还下载了最新版的 sendmail 应用程序,并对其进行了以下更改,当然替换为我的电子邮件信息。
smtp_server=smtp.gmail.com
smtp_port=465
smtp_ssl=auto
auth_username=myemail@gmail.com
auth_password=mypassword
force_sender=myemail@gmail.com
hostname=smtp.gmail.com
我仍然无法发送进行上述更改的电子邮件,如果有人可以提供帮助,请告诉我,谢谢。
【问题讨论】:
-
谁在
unix上命名了sendmail.exe? -
您以前可以用(其他)xammp 以这种方式发送它吗?通过gmail帐户??
-
我在 windows 上使用 xampp 而不是在 unix 上,因此它有一个用于 sendmail 的 .exe 文件。
标签: php email xampp sendmail.exe