发送邮件是常用的功能,LZ今天在项目中也碰到了,特此分享一下。
首先,去下载PHPMailer
1、https://github.com/dwqs/PHPMailer
2、http://download.csdn.net/detail/u011043843/8063583
下载之后,将文件解压到项目目录的对应位置,将class.phpmailer.php和class.smtp.php引入项目