0

I have an HTML user form. User will fill form from webpage, when user submit that form then it will go to admin email(including form fields i.e textfield, checkbox etc) as originally filled by user

Now the problem is that form send to gmail, yahoo, hotmail as i want but to outlook it is sent as see in pic below,

enter image description here

I'm using this code below,

$headers = "From: " ."mail@example.com" . "\r\n";
$headers .= "Reply-To: ". "mail@example.com" . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "<html><body><table border='1'>
    <tr>
        <td>Name</td>
        <td><input type='text' value='test user' name='name'/></td>
    </tr>
    <tr>
        <td>Education</td>
        <td>
            <input type='checkbox' name='graduate' value='graduate' checked='checked' />Graduate<br/>
            <input type='checkbox' name='high_school' value='high_school'/>High School<br/>
            <input type='checkbox' name='primary_school' value='primary_school'/>Primary School<br/>
        </td>
    </tr>
    <tr>
        <td colspan='2'>
            <input type='submit' name='submit' value='Submit' />
        </td>
    </tr>
</table></body></html>";

Note : User will fill the form from webpage, the out put will go to admin email same as in the original form.

4

3 回答 3

3

您可以使用图像而不是复选框。

于 2012-12-16T09:40:28.563 回答
2

我认为您无法解决此限制,出于安全原因,它可能存在。此外,使用实际的表单字段可能会非常令人困惑——当看到它们时,用户可能会期待一些没有交互的机会。

您是否考虑过使用图形符号?

  • 它适用于所有客户
  • 它将独立于用户的操作系统如何呈现复选框
于 2012-12-16T09:37:29.260 回答
1

发布指向提供表单的网站的链接。当用户填写表格时,将表格中的结果发布给管理员/员工。

HTML 加上表单加上电子邮件 = 噩梦。

许多人(比如我)一开始只看“纯文本”电子邮件,这意味着根本没有 HTML 和图像。

于 2012-12-16T09:38:45.147 回答