<?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 19:08:58 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Reddit.com: How do you test email when in development?]]></title>
      <guid>http://www.phpdeveloper.org/news/16798</guid>
      <link>http://www.phpdeveloper.org/news/16798</link>
      <description><![CDATA[<p>
In <a href="http://www.reddit.com/r/PHP/comments/jzccc/how_do_you_test_email_when_in_development/">this recent post</a> to Reddit, a question is asked that's an issue for many developers testing the email sending abilities of their applications - how can it be tested effectively without outside services flagging you as a possible spammer.
</p>
<blockquote>
So how do you guys do it? My current solution is to just output the email template HTML straight to the browser, but this doesn't always work. [...] I have considered sending emails through to my GMail, but I run my tests quite often and I'm not sure Google would be too happy with the amount I send. [...] I'm sure there's a better way I can handle this without modifying my code too much. Suggestions appreciated.
</blockquote>
<p>
Suggestions from <a href="http://www.reddit.com/r/PHP/comments/jzccc/how_do_you_test_email_when_in_development/#comments">the comments</a> include:
</p>
<ul>
<li>a local SMTP/IMAP server configured to catch all emails being sent
<li>Changing the address based on an environment flag
<li>Using "<anything>@example.com" 
<li>Saving the email as a .msg file for later review
</ul>
<p>
There's also suggestions of other Mac or Windows software to mimic the mail server like <a href="http://smtp4dev.codeplex.com/">smtp4dev</a> and <a href="http://mocksmtpapp.com/">MockStmp</a>
</p>]]></description>
      <pubDate>Wed, 31 Aug 2011 12:58:53 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Build Your Own PHP Web Mailer]]></title>
      <guid>http://www.phpdeveloper.org/news/14940</guid>
      <link>http://www.phpdeveloper.org/news/14940</link>
      <description><![CDATA[<p>
On WebReference.com today there's <a href="http://www.webreference.com/programming/php_webmail/">a new tutorial</a> about creating a PHP interface for sending and receiving emails directly from a mailer script.
</p>
<blockquote>
In this tutorial you will learn how to create your own PHP Web mailer. You will learn the necessary steps for creating an email account and making connections to the server protocols for sending and receiving email. You also will get a listing of PHP commands that you can use to customize the Web mailer to your specifications.
</blockquote>
<p>
The script makes manual connections to the servers instead of using something like <a href="http://php.net/mail">mail</a> and sends the raw commands to send via an SMTP server and fetch over a POP3 connection. There's also an example of making an IMAP connection and sending commands to get the current list of messages, current status and fetch the messages.
</p>]]></description>
      <pubDate>Wed, 11 Aug 2010 10:56:49 -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[Richard Heyes' Blog: SMTP class rehash]]></title>
      <guid>http://www.phpdeveloper.org/news/9197</guid>
      <link>http://www.phpdeveloper.org/news/9197</link>
      <description><![CDATA[<p>
<i>Richard Heyes</i> has <a href="http://www.phpguru.org/#162">posted his STMP class</a> for download (after some good testing):
</p>
<blockquote>
With the help of a few anonymous people (thanks), I've rehashed the smtp class for PHP5 and made it <a href="http://www.phpguru.org/downloads/smtp5/">available</a>. It should be considered beater quality at the moment, so don't go using it for production code unless you like to live dangerously (Ooooh...).
</blockquote>
<p>
He includes both a code example and a <a href="http://www.phpguru.org/downloads/smtp5/">link to download</a> the library.
</p>]]></description>
      <pubDate>Fri, 07 Dec 2007 12:56:00 -0600</pubDate>
    </item>
  </channel>
</rss>
