【问题标题】:xampp lite ver 1.7.7 not able to send emailsxampp lite ver 1.7.7 无法发送电子邮件
【发布时间】: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


【解决方案1】:

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

【讨论】:

  • 是的,我知道,但是应该根据其中一个源的教程将注释掉的行注释掉。
  • 可以给我出处吗?
  • 嗨,我按照本教程进行操作。 mattwad.wordpress.com/2011/11/13/…
  • 我已经设法让它工作了。问题是我也启用了弹出设置,如果有人遇到此问题,请按照上面给出的教程链接进行操作。
猜你喜欢
  • 2021-09-12
  • 2013-03-30
  • 2016-10-29
  • 1970-01-01
  • 2017-01-31
  • 2013-03-13
  • 2016-07-29
相关资源
最近更新 更多