Php xampp lite 1.7.7版无法发送电子邮件

Php xampp lite 1.7.7版无法发送电子邮件,php,email,xampp,sendmail.exe,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@lo

我正在尝试使用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而不是unix上使用xampp,因此它有一个用于sendmail的.exe文件。是的,我知道,但是注释掉的行应该根据其中一个源代码的教程注释掉。你能给我源代码吗?嗨,我遵循了本教程。我已经设法让它工作了。问题是,我也启用了pop设置,这导致了问题。如果有人有此问题,请遵循上面给出的教程链接。