将gmail配置为本地邮件客户端

将gmail配置为本地邮件客户端

问题描述:

I have config gmail as a local SMTP mail client. I have use host as smtp.gmail.com, my gmail address as username and its password and 587 as port. But i didnt see any emails send from. I have also uncomment the following lines in php.ini

 [mail function] For Win32 only.
 http://php.net/smtp SMTP = localhost
 http://php.net/smtp-port smtp_port =
 587

 ; For Win32 only.
 http://php.net/sendmail-from
 sendmail_from = myemail@gmail.com

What am i missing please? I am using windows7 x64. I have notice the php.ini says for windows 32 only? is there a another settings for windows x64?

Thanks.

我将config gmail作为本地SMTP邮件客户端。 我使用host作为smtp.gmail.com,我的gmail地址作为用户名和密码,587作为端口。 但我没有看到任何发送的电子邮件。 我还取消注释php.ini中的以下行 p>

  [mail function]仅适用于Win32。
 http://npph.net/smtp SMTP = localhost 
 http  ://php.net/smtp-port smtp_port = 
 587 
 
; 仅适用于Win32。
 
 
 http://php.net/sendmail-from
 sendmail_from = myemail@gmail.com 
  code>  pre> 
 
 

我缺少什么? 我使用的是windows7 x64。 我注意到php.ini仅针对Windows 32说? Windows x64还有其他设置吗? p>

谢谢。 p> div>

here you have got full tutorial explaining how to achieve this

http://digiex.net/guides-reviews/guides-tutorials/application-guides/544-configuring-php-under-windows-use-gmail-external-smtp-server-ssl.html

there is also great class that I'd recommend for sending e-mails PHPMailer: tutorial here