Note that there are some explanatory texts on larger screens.

plurals
  1. POphp mail function with html not shown correct in exchange
    primarykey
    data
    text
    <p>I got a strange problem with php mail and exchange. When I use the a simple php html mailscript, see below (can be found all over internet) I see the mail as kind of plain text (see below) mail in Microsoft Exchange. But when I send the mail to an other account with Outlook I see the mail as a HTML-mail as it should be.</p> <p>Doest anybody got a clue?</p> <p><strong>Mailscript:</strong></p> <pre><code>&lt;?php // multiple recipients $to = 'aidan@example.com' . ', '; // note the comma $to .= 'wez@example.com'; // subject $subject = 'Birthday Reminders for August'; // message $message = ' &lt;html&gt; &lt;head&gt; &lt;title&gt;Birthday Reminders for August&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;Here are the birthdays upcoming in August!&lt;/p&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt;Person&lt;/th&gt;&lt;th&gt;Day&lt;/th&gt;&lt;th&gt;Month&lt;/th&gt;&lt;th&gt;Year&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Joe&lt;/td&gt;&lt;td&gt;3rd&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1970&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Sally&lt;/td&gt;&lt;td&gt;17th&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1973&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt; '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: Mary &lt;mary@example.com&gt;, Kelly &lt;kelly@example.com&gt;' . "\r\n"; $headers .= 'From: Birthday Reminder &lt;birthday@example.com&gt;' . "\r\n"; $headers .= 'Cc: birthdayarchive@example.com' . "\r\n"; $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); ?&gt; </code></pre> <p><strong>View in Exchange:</strong></p> <pre><code>Content-type: text/html; charset=iso-8859-1 From: Birthday Reminder &lt;birthday@example.com&gt; Subject:Birthday Reminders for August Return-Path: root@server2.nedstars.nl X-OriginalArrivalTime: 06 Oct 2010 13:39:59.0117 (UTC) FILETIME=[F839FBD0:01CB655B] &lt;html&gt; &lt;head&gt; &lt;title&gt;Birthday Reminders for August&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;Here are the birthdays upcoming in August!&lt;/p&gt; &lt;table&gt; &lt;tr&gt; &lt;th&gt;Person&lt;/th&gt;&lt;th&gt;Day&lt;/th&gt;&lt;th&gt;Month&lt;/th&gt;&lt;th&gt;Year&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Joe&lt;/td&gt;&lt;td&gt;3rd&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1970&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Sally&lt;/td&gt;&lt;td&gt;17th&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1973&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload