帮助使用sendmailconfiguration通过我的Gmail帐户发送邮件?

这是sendmail.ini文件现在要更改的内容

# Example for a user configuration file # Set default values for all following accounts. defaults logfile "\xampp\sendmail\sendmail.log" # Mercury account Mercury host localhost from postmaster@localhost auth off # A freemail service example account gmail tls on tls_certcheck off host smtp.gmail.com from ****@gmail.com auth on user ****@gmail.com password ******* # Set a default account account default : Mercury 

需要在configuration1中添加[端口587]

 account Gmail tls on port 587 tls_certcheck off host smtp.gmail.com from ***@gmail.com auth on user ***@gmail.com password mygmailpassword # Set a default account account default : Gmail