代码改变世界

随笔档案-2012年11月1日

PHP发送邮件示例

2012-11-01 15:10 by owenyang, 278 阅读, 收藏,
摘要: 一、通过mail()此方法,需要配置邮件服务器参考代码:二、开源项目PHPMailer实现邮件发送项目地址:http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list 里面有示例,参考代码:IsSMTP(); // tell the class to use SMTP $mail->SMTPAuth = true; // enable SMTP authentication $mail->Port = 25; ... 阅读全文