私は次の形式を持っています:
<form action="" method="post" enctype="multipart/form-data">
<input required="required" name="name" type="text" placeholder="Name" /><br /><br />
<input required="required" name="email" type="text" placeholder="Email" /><br /><br />
<input required="required" name="phone" type="text" placeholder="Phone Number" /><br /><br />
<input required="required" name="website" type="text" placeholder="URL to blog / website" /><br /><br />
<input type="file" name="file" /><br /><br />
<textarea name="message" cols="" rows="10" placeholder="Message (optional)"></textarea><br /><br />
<input name="send_form" type="submit" value="Submit" style="float:right; width:200px;" />
</form>
そして、これは私のphpです:
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "xxxxxx"; // sets the SMTP server
$mail->Username = "xxxxxxx";// SMTP account username
$mail->Password = "xxxx"; // SMTP account password
$mail->From = $_REQUEST['email'];
$mail->FromName = $_REQUEST['name'];
$mail->IsHTML(true);
$mail->Subject = "CV Upload";
$body = 'Name:'.$_REQUEST['name'].'<br /><br />Email:'.$_REQUEST['email'].'<br /><br />Email:'.$_REQUEST['website'].'<br /><br />Message:'.$_REQUEST['message'].'<br /><br />';
$mail->Body = $body;
$mail->AltBody = $text_body;
$mail->AddAddress("danyob@rbh.co.uk");
$mail->AddAttachment($_FILES['file']['tmp_name'], $_FILES['file']['name']);
if($mail->Send()){
$success = true;
}else{
$success = false;
}//if($mail->Send()){}
何らかの理由で、受信したメールにコンテンツの本文が表示されません。件名と他のすべてが機能します。上記に何か問題がありますか?