다음 PHP 문의 양식은 저에게 효과적이지 않습니다. 오류 수정을 도와주세요. 양식을 제출하면 트리거 된 이메일이 없습니다. 나는 틀렸다. 무엇이 잘못되었는지. 다음과 같은 PHP 문의 양식은 나를 위해 작동하지 않습니다. 오류 수정을 도와주세요.PHP 문의 양식이 전자 메일을 트리거하지 않음
<?php
ob_start();
if(isset($_POST['your-name'])){
\t $to = "[email protected]";
\t $from = $_POST['your-name'].'<'.$_POST["email"].'>';
\t $subject = "Enquiry Form";
\t
\t $message= '<html>
\t \t \t <body bgcolor="#EBEBEB" style="font-family:Roboto,Arial,Helvetica,sans-serif;">
\t \t \t <table cellpadding="3" cellspacing="2">
\t \t \t <tr>
\t \t \t <td colspan="3" align="left"><h3>Booker Information</h3></td>
\t \t \t </tr>
\t \t \t <tr>
\t \t \t <td colspan="3"> </td>
\t \t \t </tr>
\t \t \t <tr>
\t \t \t <td width="160" > Name</td><td width="15">:</td><td>'.$_POST["your-name"].'</td>
</tr>
\t \t \t <tr>
<td>Email</td><td>:</td><td>'.$_POST["your-email"].'</td>
\t \t \t </tr>
\t \t \t <tr>
<td>Website</td><td>:</td><td>'.$_POST["tel-681"].'</td>
\t \t \t </tr>
\t \t \t <tr>
<td>Message</td><td>:</td><td>'.$_POST["your-message"].'</td>
\t \t \t </tr>
\t \t \t </table>
\t \t \t </body>
\t \t \t </html>';
\t \t //
\t \t $headers = "MIME-Version:1.0 \r\n";
\t \t $headers .= "Content-type:text/html; charset=iso-8859-1\r\n";
\t \t $headers .= "From: $from\r\n";
\t \t if(mail($to, $subject, $message, $headers)){
\t \t \t //session_destroy();
\t \t \t header('Location:enquiry.html?message=success');
\t \t }
}
<form action="messageForm.php" class="wpcf7-form" method="post" novalidate>
<p><span class="wpcf7-form-control-wrap your-name"><input class=
"wpcf7-form-control wpcf7-text wpcf7-validates-as-required floatlabel"
name="your-name" placeholder="Name" size="40" type="text"></span>
</p>
<p><span class="wpcf7-form-control-wrap your-email"><input class=
"wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email floatlabel"
name="your-email" placeholder="Email" size="40" type="email"></span>
</p>
<p><span class="wpcf7-form-control-wrap tel-681"><input class=
"wpcf7-form-control wpcf7-text wpcf7-tel wpcf7-validates-as-tel floatlabel"
name="tel-681" placeholder="Phone" size="40" type="tel"></span>
</p>
<p><span class="wpcf7-form-control-wrap your-message">
<textarea class="wpcf7-form-control wpcf7-textarea floatlabel" cols=
"40" name="your-message" placeholder="Message" rows="10">
</textarea></span>
</p>
<p data-scrollreveal="enter bottom over 1s after 1s and move 50px">
<input class="wpcf7-form-control wpcf7-submit get-in-touch-submit-btn"
type="submit" value="Send">
</p>
<div class="wpcf7-response-output wpcf7-display-none">
</div>
</form>
이 라인
당신은 당신의 컴퓨터 또는 서버에서이 테스트를하고 있습니까? – MTahir
당신이 발견 한 문제는 무엇입니까 –
'email-only'는'email-only'입니다. – 4302836