我正在尝试编写表单/工作申请,但不能完全决定如何发送它。我已经知道如何通过电子邮件发送所有信息。
我想做的是通过电子邮件发送信息,但我希望电子邮件显示 html 编码以更好地组织数据。我在 PHP 中声明了所有内容,我只是在决定消息:
<?php
$to = "jobs@enhstudios.com";
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$age = $_POST['age'];
$address = $_POST['address'];
$aptno = $_POST['aptno'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$phone = $_POST['phone'];
$phonetype = $_POST['phonetype'];
$jdate1 = $_POST['jdate1'];
$employer1 = $_POST['employer1'];
$title1 = $_POST['title1'];
$leaving1 = $_POST['leaving1'];
$jdate2 = $_POST['jdate2'];
$employer2 = $_POST['employer2'];
$title2 = $_POST['title2'];
$leaving2 = $_POST['leaving2'];
$jdate3 = $_POST['jdate3'];
$employer3 = $_POST['employer3'];
$title3 = $_POST['title3'];
$leaving3 = $_POST['leaving3'];
$skills = $_POST['skills'];
$subject = $fname." ".$lname."Application";
$message =
$from = $email;
mail($to,$subject,$message);
?>
我想在 $message 中写一个表格,并将数据显示在一个漂亮的整洁表格中。