xampp lite ver 1.7.7无法发送电子邮件

时间:2012-03-30 11:09:02

标签: php email xampp sendmail.exe

我尝试使用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

我仍然无法发送电子邮件进行上述更改,如果有人可以提供帮助那么请让我知道谢谢。

1 个答案:

答案 0 :(得分:1)

如果有;在该行之前,这意味着它被注释掉了

相关问题