<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 08:10:16 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Allen: Sending an HTML with text alternative email with ZendMail]]></title>
      <guid>http://www.phpdeveloper.org/news/18689</guid>
      <link>http://www.phpdeveloper.org/news/18689</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has a <a href="http://akrabat.com/zend-framework-2/sending-an-html-with-text-alternative-email-with-zendmail/">quick tutorial posted</a> to his site today showing you how to send an email with the ZendMail component of the Zend Framework 2 that contains HTML but provides a plain text backup in the same message.
</p>
<blockquote>
Sending a multi-part email with ZendMail is easy enough, but if you want to send an HTML email with a text alternative, you need to remember to set the content-type in the headers to multipart/alternative. As this is the second time I had to work this out, I'm noting it here for the next time I forget!
</blockquote>
<p>
The rest of the post is the code you'll need to send a simple email with a text and HTML body sections, configure the headers (to, from, etc) and the "multipart/alternative" header to make the HTML or plain text switching work correctly.
</p>]]></description>
      <pubDate>Fri, 02 Nov 2012 10:26:20 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Weiske's Blog: A MIME type for .php files]]></title>
      <guid>http://www.phpdeveloper.org/news/16195</guid>
      <link>http://www.phpdeveloper.org/news/16195</link>
      <description><![CDATA[<p>
<i>Christian Weiske</i> has a recent post to his site looking at something most PHP developers don't even think about when serving up their scripts - the <a href="http://cweiske.de/tagebuch/php-mimetype.htm">MIME types for PHP files</a>.
</p>
<blockquote>
While setting some svn properties at work, we wondered about the correct MIME type for .php files.
</blockquote>
<p>
He found several in the <a href="http://www.iana.org/assignments/media-types/">official IANA list</a> including "text/php", "application/php" and "application/x-http-php" - all valid but none of them considered a standard. He talks about the ones supported by linux distributions (like Debian/Ubuntu) and some reasoning that might make "application/php" the best choice of the list. He points out some downsides to the choice, though, including the fact that something starting with "application/" should considered "machine readable" only despite PHP just being text.
</p>]]></description>
      <pubDate>Thu, 14 Apr 2011 09:17:06 -0500</pubDate>
    </item>
  </channel>
</rss>
