<?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>Tue, 21 May 2013 14:17:30 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Script-Tutorials.com: Google API - Get contact list]]></title>
      <guid>http://www.phpdeveloper.org/news/18275</guid>
      <link>http://www.phpdeveloper.org/news/18275</link>
      <description><![CDATA[<p>
In <a href="http://www.script-tutorials.com/google-api-get-contact-list/">this new tutorial</a> on the Script-Tutorials.com site, they show you how to use the Google API (and OAuth) to access contacts information from your Gmail account.
</p>
<blockquote>
In our new tutorial I am going to tell you about inviting friends. I think that this is the most important part for every website, a key to success. Today I will show you how to create simple and effective Gmail contact importer using OAuth authorization and API. Also, I will tell about obtaining Google API access too.
</blockquote>
<p>
Screenshots show you how to get to the access token information you'll need to connect and the <a href="http://www.script-tutorials.com/demos/291/source.zip">full code</a> is included to help you get authenticated and pull down the contacts list to display in the page's HTML output.
</p>]]></description>
      <pubDate>Thu, 26 Jul 2012 09:26:27 -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[9Lessons: Import GMail Contacts Google OAuth Connect with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16486</guid>
      <link>http://www.phpdeveloper.org/news/16486</link>
      <description><![CDATA[<p>
In a recent post to the 9Lessons.info site, <i>Srinivas Tamada</i> shows you how to <a href="http://www.9lessons.info/2011/06/import-gmail-contacts-google-oauth.html">connect Gmail with your system to import contacts</a> via the magic of OAuth (pulled from Gmail to you).
</p>
<blockquote>
Inviting friends is the most important part of the web project success. This post explains you how to import Gmail contacts from address book via Google open authorization protocol connect with PHP. It's simple just few configurations follow below four steps, use this script and give option to invite more friends.
</blockquote>
<p>
Following a few simple steps and using <a href="http://demos.9lessons.info/subscribe/index_gmail.php">this simple script</a> - registering the domain under Google Accounts, verify ownership and use the OAuth consumer and secret keys in the script. It's then simple to grab the contacts and output their details as the "Contacts.php" example script shows.
</p>]]></description>
      <pubDate>Fri, 17 Jun 2011 11:11:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Downloading and Parsing Gmail Messages in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15057</guid>
      <link>http://www.phpdeveloper.org/news/15057</link>
      <description><![CDATA[<p>
New on PHPBuilder.com today there's a tutorial showing you how to <a href="http://www.phpbuilder.com/columns/PHP-IMAP-Gmail/Rose_Kelleher083110.php3">download and parse</a> messages from Google Mail. In their case it's grabbing and parsing submissions from a form.
</p>
<blockquote>
Some friends of mine publish a literary journal that accepts submissions via email. At their request I wrote a script to download messages from the journal's Gmail account and do some simple parsing tasks. Most of the submissions are made using an HTML form and a corresponding mailer script on their website, so I knew the precise format of the incoming messages (see Figure 1). What I didn't know was how to access Gmail in PHP.
</blockquote>
<p>
He tried out the <a href="http://gmail-lite.sourceforge.net/wordpress/index.php/about/libgmailer/">libgmailer</a> script first, but ran into roadblocks until he realized he could use something PHP already had - the <a href="http://php.net/imap">imap functions</a>. With these he shows how to make a connection to the Gmail servers, get the listing of messages and pull out the body for the one you want to parse.
</p>]]></description>
      <pubDate>Wed, 01 Sep 2010 09:21:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SeeIT Consult Blog: PHP mail() with Ubuntu Desktop and Gmail]]></title>
      <guid>http://www.phpdeveloper.org/news/15030</guid>
      <link>http://www.phpdeveloper.org/news/15030</link>
      <description><![CDATA[<p>
In <a href="http://blog.seeit.org/2010/08/php-mail-with-ubuntu-desktop-and-gmail/">this new post</a> to the SeeIT Consult blog they show you how to use the Google Mail STMP service to send emails directly from PHP - no local MTA required.
</p>
<blockquote>
I use a local Apache/MySQL server on a laptop to do a lot of my development '" I don't need a full mail server just to send mail. Also SMTP servers on dynamically assigned IP addresses are so untrusted these days that you can be pretty much guaranteed that a decent spam filter will reject your email based on a RBL lookup. By using Google Mail's authenticated SMTP service you bypass this restriction.
</blockquote>
<p>
Their solution uses the <a href="http://packages.qa.debian.org/s/ssmtp.html">ssmtp</a> tool instead - a simpler MTA that doesn't require near the setup of others. They show you how to adjust the config to handle the PHP emails, set up some users and configure PHP (the sendmail_path in the php.ini) to push the emails through it. Because of the configuration changes, it then knows enough to push those emails out to Gmail's SMTP.
</p>]]></description>
      <pubDate>Fri, 27 Aug 2010 08:57:20 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Development Blog: Sending e-mails via SMTP with PHPmailer and Gmail]]></title>
      <guid>http://www.phpdeveloper.org/news/13171</guid>
      <link>http://www.phpdeveloper.org/news/13171</link>
      <description><![CDATA[<p>
On the Web Development Blog there's a <a href="http://www.web-development-blog.com/archives/send-e-mail-messages-via-smtp-with-phpmailer-and-gmail/">recent post</a> about using the PHPMailer package to send email out via the Google Mail servers.
</p>
<blockquote>
These days I tried some plugin to send mail message within bbpress via SMTP. Since my domains email is hosted with Google applications I decided to send my messages via the SMTP server from Gmail. I found several articles and tutorials, but a lot of them didn't work for me. [...] You need for this code example a PHP5 enabled web host (I tested only on Linux), the port 465 need to be open and of course you need a Gmail or Google applications account. 
</blockquote>
<p>
Complete code is provided - a smtpmailer function that takes in the standard mail parameters (to, from, subject, msg) and ships the message off to the Gmail STMP servers (on their custom port 465).
</p>]]></description>
      <pubDate>Fri, 04 Sep 2009 14:56:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[VulgarisOverIP: Send email with PHP and GMail hosted for your domain]]></title>
      <guid>http://www.phpdeveloper.org/news/5059</guid>
      <link>http://www.phpdeveloper.org/news/5059</link>
      <description><![CDATA[GMail's "for your domain" email feature has already impressed quite a bit of the industry, but have you ever wished for something a little bit more? Have you wanted to be able to send things the same way, but from a PHP script? Vulgarisoip is <a href="http://vulgarisoip.wordpress.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/">here to help</a>.
<p>
<quote>
<i>
Now that GMail for your domain has arrived (if you're a lucky beta winner, that is) it's like hiring a world-class email server engineer and paying them nothing. It takes a little work because of GMail's security requirements, but you end up with a rock solid email server that won't send messages straight into spam folders.
</i>
</quote>
<p>
He uses the <a href="http://phpmailer.sourceforge.net/">PHPMailer pakcage</a> to do the dirty work - ensuring the headers are correct and providing a simple API for your scripts to use. There's a brief code example with a small explaination, but there's really not that much to it - any coder could integrate it easily.
<p>
[<a href="http://digg.com/programming/Send_email_with_PHP_and_GMail_hosted_for_your_domain">digg it</a>]]]></description>
      <pubDate>Tue, 28 Mar 2006 07:31:25 -0600</pubDate>
    </item>
  </channel>
</rss>
