0

フォームから結果をメールで送信するスクリプトを作成しようとしています。それは機能していましたが、今では電子メールを送信することすらありません。誰でも理由を見つけることができますか?? ありがとう!!私はこれを100回経験しましたが、何が悪いのかわかりません...

`

/* Subject and Email Variables */

$emailSubject = 'Membership Submission from Form';
$webMaster = 'testemail@gmail.com';

/* Gathering Data Variables */

$nameField = $_POST['name'];
$membershipField = $_POST['membership'];
$addressField = $_POST['address'];
$cityField = $_POST['city'];
$provinceField = $_POST['province'];
$postalcodeField = $_POST['postalcode'];
$telhomeField = $_POST['telhome'];
$telcellField = $_POST['telcell'];
$telofficeField = $_POST['teloffice'];
$emailField = $_POST['email'];
$commentsField = $_POST['comments'];

$body = <<<EOD
Name: $name <br>
Membership Type: $membership <br>
Address: $address <br>
City: $city <br>
Province: $province <br>
Postal Code: $postalcode <br>
Tel Home: $telhome <br>
Tel Cell: $telcell <br>
Tel Office: $teloffice <br>
Email: $email <br>
Comments: $comments <br>
EOD;


$headers = "from: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail ($webMaster, $emailSubject, $body, $headers);

/* Results rendered as html */

$theResults = <<<EOD

EOD;
echo "$theResults";


?>` 
4

0 に答える 0