<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_61051"> <div class="blockcode"> <div id="code_b17"><ol> <li> <?php <li>include("class.phpmailer.php");</li> <li>$mail = new PHPMailer();</li> <li>$mail->From = 'your email address@.com';</li> <li>$mail->FromName = 'HTML Blog';</li> <li>$mail->Host = 'host name';</li> <li>$mail->Mailer = 'smtp';</li> <li>$mail->Subject = 'subject';</li> <li>$mail->IsHTML(true);</li> <li>$body = 'Hello<br>How are you ?';</li> <li>$textBody = 'Hello, how are you ?';</li> <li>$mail->Body = $body;</li> <li>$mail->AltBody = $textBody;</li> <li>$mail->AddAddress('reciepents full email address');</li> <li>if(!$mail->Send())</li> <li> echo 'There has been a mail error !';</li> <li> </ol></div> <em onclick="copycode($('code_b17'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> 发送邮件, PHP</div> <div id="comment_61051" class="cm"> </div> <div id="post_rate_div_61051"></div> <br><br>