<?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>Sat, 25 May 2013 19:30:27 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Exploring PHP's IMAP Library, Part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/18556</guid>
      <link>http://www.phpdeveloper.org/news/18556</link>
      <description><![CDATA[<p>
PHPMaster.com has published the <a href="http://phpmaster.com/exploring-phps-imap-library-2/">second part of their series</a> taking you on a tour through PHP's IMAP extension and its use. In <a href="http://phpmaster.com/exploring-phps-imap-library-1/">part one</a> they introduced the extension and showed how to connect, get the folders/emails and view message contents. In this part they expand n that and show you how to work with the messages and attachments.
</p>
<blockquote>
In the first part of this series I discussed how to connect to IMAP servers using PHP's IMAP extension. In this part we'll complete the series by discussing working with folders and reading email content. Let's get started!
</blockquote>
<p>
He shows how to work with the "flags" set on messages (read, unread, replied, etc) - pulling them from the server and using the <a href="http://php.net/imap_setflag_full"> imap_setflag_full</a> function to set them. There's a quick mention of deleting messages with <a href="http://php.net/imap_delete">imap_delete</a>/<a href="http://php.net/imap_expunge">imap_expunge</a> and a section on viewing and downloading the attachments to messages.
</p>]]></description>
      <pubDate>Thu, 04 Oct 2012 10:36:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Downloading Gmail attachments using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17922</guid>
      <link>http://www.phpdeveloper.org/news/17922</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has a <a href="http://www.codediesel.com/php/downloading-gmail-attachments-using-php/">quick tutorial</a> posted to his site today about using PHP, specifically the <a href="http://php.net/imap">IMAP functionality</a>, to grab attachments off of emails from Gmail.
</p>
<blockquote>
Automatically extracting attachments from Gmail can be important for reasons where you need to process the attached files periodically with a CRON job. Also it can be useful for automatically archiving important attachments. Below is a simple proof-of-concept plain PHP code, devoid of any object-oriented features that extracts attachments from your Gmail account. It uses PHPs imap extension to access the inbox.
</blockquote>
<p>
His simple script opens an IMAP connection to the Gmail server and loops through your current emails (max of 16) and tries to find any that have attachments. It then extracts this part of the message, <a href="http://php.net/base64_decode">base64_decodes</a> it, and saves the set of them to the local file system. You can <a href="http://www.codediesel.com/downloads/Gmail-Imap">download the source here</a>.
</p>]]></description>
      <pubDate>Tue, 08 May 2012 09:08:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Using a stream wrapper to access CouchDb attachments with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15079</guid>
      <link>http://www.phpdeveloper.org/news/15079</link>
      <description><![CDATA[<p>
In his continuing look at using CouchDb as a file system, <i>Gonzalo Ayuso</i> has posted <a href="http://gonzalo123.wordpress.com/2010/09/06/using-a-stream-wrapper-to-access-couchdb-attachments-with-php/">this third part</a> in the group of articles about using streams to connect your scripts to the database instance.
</p>
<blockquote>
I'm still working in my filesystem with CouchDb. After creating a library to enable working with PHP and CouchDB (see the post <a href="http://gonzalo123.wordpress.com/2010/08/30/using-couchdb-as-filesystem-with-php/">here</a>), and after using <a href="http://gonzalo123.wordpress.com/2010/09/01/using-monkey-patching-to-store-files-into-couchdb-using-the-standard-filesystem-functions-with-php/">Monkey Patching</a> to override standard PHP's filesystem functions. I've created another solution now. Thanks to a <a href="http://gonzalo123.wordpress.com/2010/09/01/using-monkey-patching-to-store-files-into-couchdb-using-the-standard-filesystem-functions-with-php/#comment-377">comment</a> in my last post (many thanks Benjamin) I've discovered that it's possible to create a stream wrapper in <a href="http://www.php.net/manual/en/stream.streamwrapper.example-1.php">PHP</a> (I thought it was only available with a C extension).
</blockquote>
<p>
He includes the code for the stream connection wrapper, a pretty simple script that parses the string it's given and opens a read/write stream to the source. There's also a "url_stat" method that will return to you the size of the stream in bytes. Then you just <a href="http://php.net/stream_wrapper_register">register the wrapper</a> and go about your normal file system calls to use the CouchDb directly.
</p>]]></description>
      <pubDate>Mon, 06 Sep 2010 08:15:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Andrew Johnstone's Blog: Emailing Attachments: Exim Filters and PHP streams]]></title>
      <guid>http://www.phpdeveloper.org/news/14581</guid>
      <link>http://www.phpdeveloper.org/news/14581</link>
      <description><![CDATA[<p>
New on his blog today <i>Andrew Johnstone</i> has <a href="http://ajohnstone.com/archives/emailing-attachments-exim-filters-and-php-streams/">a post about email attachments</a> how how the combination of Exim filters and PHP streams can make things much easier for you and your application.
</p>
<blockquote>
Using exim filters we could add attachments at the delivery stage, therefore reducing overhead in constructing and injecting data into an email. The delivery of emails varied as to whether it was feasible to send as a BCC or whether there were placeholders intended for each individual recipient. As such the following addresses the worst case scenario of attachments with placeholders intended for each individual recipient.
</blockquote>
<p>
They show how to use a PHP script (that uses streams to pull in the file data and information) hooked into an exim_filter to streamline the attachment process. Configuration file examples are included in the post as well as the PHP source for creating the filter.
</p>]]></description>
      <pubDate>Tue, 01 Jun 2010 08:51:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: CodeIgniter From Scratch: Day 3. Sending Emails and Attachments]]></title>
      <guid>http://www.phpdeveloper.org/news/12993</guid>
      <link>http://www.phpdeveloper.org/news/12993</link>
      <description><![CDATA[<p>
The NETTUTS.com site has posted <a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-3/">the vidcast for the third day</a> of their look at the CodeIgniter framework (and creating a full simple application with it).
</p>
<blockquote>
At the request of some of our readers, this week, we'll examine just how easy it is to send emails with attachments using Gmail. With raw PHP, this would be a long and tedious task. However, with CodeIgniter, it's a cinch! I'll show you how in this eighteen minute video tutorial. 
</blockquote>
<p>
You can watch the video via their <a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-3/">in-page player</a> and <a href="http://nettuts.s3.amazonaws.com/380_ci_one/ci_day3.zip">grab the source code</a> if you'd like to follow along.
</p>]]></description>
      <pubDate>Tue, 04 Aug 2009 16:21:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Sending Email with PHP Networking]]></title>
      <guid>http://www.phpdeveloper.org/news/11028</guid>
      <link>http://www.phpdeveloper.org/news/11028</link>
      <description><![CDATA[<p>
DevShed has the <A href="http://www.devshed.com/c/a/PHP/Sending-Email-with-PHP-Networking/">second of a two part tutorial</a> posted today on sending emails with the included mail() function.
</p>
<blockquote>
In this article we will look at the protocol that is involved in sending email messages. We will also examine the thorny issue of how to send an attachment with an email message. This article is the second of two parts.
</blockquote>
<p>
They include examples of sending simple messages and more complex ones with things like attachments and custom headers. They also tack on a look at the PEAR::Mail package to the end showing how it can make sending some things a little less painful.
</p>]]></description>
      <pubDate>Tue, 16 Sep 2008 11:21:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Eran Galperin's Blog: Handling mail and mime in PHP using the Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/10633</guid>
      <link>http://www.phpdeveloper.org/news/10633</link>
      <description><![CDATA[<p>
On the Techfounder blog (from <i>Eran Galperin</i>) there's a <a href="http://www.techfounder.net/2008/07/18/handling-mail-and-mime-in-php-using-the-zend-framework/">quick tutorial</a> about using the Zend_Mail component of the Zend Framework to send both normal, plain-text emails and ones with MIME attachments.
</p>
<blockquote>
Using PHP's built in function (aptly named <a href="http://www.php.net/mail">mail()</a> ) is relatively straightforward - until you need slightly more advanced features, such as adding and encoding email headers or sending multiple mails efficiently. Fortunately, the Zend Framework comes with a very capable mail component called <a href="http://framework.zend.com/manual/en/zend.mail.html">Zend_Mail</a>.
</blockquote>
<p>
He <a href="http://www.techfounder.net/2008/07/18/handling-mail-and-mime-in-php-using-the-zend-framework/">shows</a> how to send a simple email, do something a bit more complex with a custom SMTP server, read messages from a remote POP3 email box and how to attach a binary file/message.
</p>]]></description>
      <pubDate>Fri, 18 Jul 2008 08:47:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: Sending Mail with Solar]]></title>
      <guid>http://www.phpdeveloper.org/news/8278</guid>
      <link>http://www.phpdeveloper.org/news/8278</link>
      <description><![CDATA[<p>
<i>Paul Jones</i> has <a href="http://paul-m-jones.com/blog/?p=253">posted a new tutorial</a> about using the mail functionality of the <a href="http://www.solarphp.com">Solar framework</a> - the <a href="http://solarphp.com/package/Solar_Mail">Solar_Mail</a> and <a href="http://solarphp.com/package/Solar_Smtp">Solar_Stmp</a> packages.
</p>
<blockquote>
While each of these [PEAR Mail, PhpMailer, SwiftMailer, Zend_Mail] will work with <a href="http://solarphp.com/">Solar</a>, the new <a href="http://solarphp.com/package/Solar_Mail">Solar_Mail</a> and <a href="http://solarphp.com/package/Solar_Smtp">Solar_Smtp</a> packages work "natively", in that they support automatic configuration, locale and exception inheritance, and so on. Read on for some examples on how to use them.
</blockquote>
<p>
In <a href="http://paul-m-jones.com/blog/?p=253">his example</a> he sets up and sends a simple message, setting the contents of the email (sent as an HTML message). Since there's been much talk about the safety of a lot of the mailing systems in frameworks, <i>Paul</i> talks about how it's been secured from header injections, through safe attachments, and from a transport dependency-injection for SMTP. 
</p>
<p>
There's even a method included that lets you take the SMTP information out of the script and put it into the Solar configuration file to use in the entire application.
</p>]]></description>
      <pubDate>Wed, 18 Jul 2007 13:48:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebCheatSheet.com: Two New Tutorials - Database Export & Sending Email]]></title>
      <guid>http://www.phpdeveloper.org/news/7252</guid>
      <link>http://www.phpdeveloper.org/news/7252</link>
      <description><![CDATA[<p>
<a href="http://www.webcheatsheet.com/">WebCheatSheet.com</a> has two new tutorials posted today - one dealing with the export of a database schema in an XML format and the other about sending emails from PHP.
</p>
<p>
Here's <a href="http://www.webcheatsheet.com/php/export_database_schema_xml.php">a link to</a> the first article.
</p>
<blockquote>
Sometimes it can be useful to have a dump of the current database schema. This script reads the schema from a MySQL database and outputs XML that describes the schema.
</blockquote>
<p>
And <a href="http://www.webcheatsheet.com/php/send_email_text_html_attachment.php">a link to</a> article number two.
</p>
<blockquote>
So, you want to send automated email messages from your PHP application. This can be in direct response to a user's action, such as signing up for your site, or a recurring event at a set time, such as a monthly newsletter. Sometimes email contains file attachments, both plain text and HTML portions, and so on. To understand how to send each variation that may exist on an email, we will start with the simple example and move to the more complicated.
</blockquote>]]></description>
      <pubDate>Fri, 09 Feb 2007 12:36:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Devshed: Email Management Details]]></title>
      <guid>http://www.phpdeveloper.org/news/6722</guid>
      <link>http://www.phpdeveloper.org/news/6722</link>
      <description><![CDATA[<p>
DevShed continues their look at the creation of a PHP email program (as excerpted from the "Zend PHP Certification Study Guide") with <a href="http://www.devshed.com/c/a/PHP/Email-Management-Details/">this new tutorial</a> focusing on the management of the emails themselves.
</p>
<blockquote>
In this second part of a two-part article, you'll learn how to manage email headers when creating a PHP email program, attach a file to a message, and more.
</blockquote>
<p>
In <a href="http://www.devshed.com/c/a/PHP/Email-Management-Details/">this part</a> they cover some of the details about the structure of emails, how to add an attachment to an email (for both a normal file and images for an HTML email), as well as a mention of how email is delivered.
</p>]]></description>
      <pubDate>Thu, 16 Nov 2006 11:05:36 -0600</pubDate>
    </item>
  </channel>
</rss>
