PHPmailer实现邮件发送 php需要打开openssl 和 sokets 扩展 PHHPMailer 核心类库 Email.php 自定义含有发送方法的类 sedEmail.php 实例化调用方法 注:不同邮箱,不同服务器需要不同的配置,具体可参考邮箱文档和代码注释