phpmailer アプリケーションのヘルプ
<?php<br /> require("class.phpmailer.php");<br /> function sendEmail($from = '3855122@163.com',$who ='Michaelssss',$To = '123456@qq.com',$body = 'BBB')<br /> {<br /> $mail = new PHPMailer;<br /> $mail->Host = "smtp.163.com";<br /> $mail->Port = 25;<br /> $mail->SMTPAuth = true;<br /> $mail->SMTPDebug = 1;<br /> <br /> $mail->Username = '3855122@163.com';<br /> $mail->Password = 'xxxxxxx';<br /> <br /> $mail->From = $from;<br /> $mail->FromName = $who;<br /> <br /> $mail->AddAddress($To,$who);<br /> $mail->WordWrap = 50;<br /> <br /> $mail->IsHTML(true);<br /> <br /> $mail->Subject = 'TEST';<br /> $mail->Body = $body;<br /> if(!$mail->Send())<br /> {<br /> echo $mail->ErrorInfo;<br /> exit;<br /> }<br /> else<br /> echo 'Ok';<br /> }<br /> sendEmail();<br /> ?><br />