[mail function] ; For Win32 only. SMTP = smtp.163.com smtp_port = 25 ; For Win32 only. sendmail_from = 4u4v@163.com ; For Unix only. You may supply arguments as well (default: “sendmail -t -i”). sendmail_path = “D:/xampp/sendmail/sendmail.exe -t”
就配置三项,smtp、smtp_port和sendmail_path sendmail.ini配置
复制代码
代码如下:
[sendmail] ; you must change mail.mydomain.com to your smtp server smtp_server=smtp.163.com smtp_port=25 auth_username=yourusername auth_password=yourpassword force_sender=yourusername@163.com