php发送邮件方法二2.(SMTP传输SMTP类调用发送)'.'标题:'.$bt.''.'url:'.$_POST['url'].''.'联系电话:'.$_POST['lianxi'].''.'详细内容:'.$_POST['xiangxi']; $Content = $td; //邮件内容 $email = 'chenlong@anheng.com.cn';//目标 接收者邮箱 $smtp = new smtp($MailServer,$MailPort,true,$MailId,$MailPw); $smtp->debug = false; if($smtp->sendmail($email,$MailId, $Title, $Content, "HTML")){ echo '邮件发送成功'; //返回结果 } else { echo '邮件发送失败'; //$succeed = 0; } ?>