<?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>Wed, 22 May 2013 13:24:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: A Better Way to Determine MIME Types for MIME Email with PHP ]]></title>
      <guid>http://www.phpdeveloper.org/news/10670</guid>
      <link>http://www.phpdeveloper.org/news/10670</link>
      <description><![CDATA[<p>
Continuing on in their look at sending MIME emails with PHP, DevShed has posted <a href="http://www.devshed.com/c/a/PHP/A-Better-Way-to-Determine-MIME-Types-for-MIME-Email-with-PHP/">a better way</a> for you to determine the correct MIME type of the file you're wanting to send (third part of the series).
</p>
<blockquote>
I demonstrated how to build a modular MIME mailer class in PHP 4; it was provided with the capacity to send messages in plain text, and to work with different types of file attachments. This class implements a private method, called "getMimeTypes()," which, as its name would suggest, comes in handy for determining the correct MIME type of a given file. [...] However, the logic implemented by this method is rather primitive and can definitely be improved.
</blockquote>
<p>
They start with <a href="http://www.devshed.com/c/a/PHP/A-Better-Way-to-Determine-MIME-Types-for-MIME-Email-with-PHP/1/">a review</a> of the previous code (PHP4) and show how to get the correct mime type of the file based on the extension mapped to an array of types.
</p>]]></description>
      <pubDate>Thu, 24 Jul 2008 07:53:18 -0500</pubDate>
    </item>
  </channel>
</rss>
