<?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>Sun, 12 Feb 2012 17:51:30 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DZone.com: How to send emails from PHP on Windows]]></title>
      <guid>http://www.phpdeveloper.org/news/16317</guid>
      <link>http://www.phpdeveloper.org/news/16317</link>
      <description><![CDATA[<p>
On the PHP on Windows site (a part of DZone.com) <i>Svetoslav Marinov</i> has <a href="http://css.dzone.com/news/how-send-emails-php-windows">a quick new post</a> looking at how you can set up your Windows PHP installation to be able to send emails similar to its linux cousins.
</p>
<p>
You'll need a server that you can use SMTP on to send the emails to, but outside of that, the setup is pretty painless. He recommends using the <a href="http://www.glob.com.au/sendmail/sendmail.zip">sendmail for Windows</a> tool to do the backend lifting. He includes the settings, both for sendmail and PHP, and configuration changes you'll need to get it all working too.
</p>
<p>
He points to <a href="http://php.net/manual/en/function.mail.php">the mail manual page</a> to grab a simple result for testing the install.
</p>]]></description>
      <pubDate>Tue, 10 May 2011 08:53:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[RooJs.com: How to spam in PHP..]]></title>
      <guid>http://www.phpdeveloper.org/news/16173</guid>
      <link>http://www.phpdeveloper.org/news/16173</link>
      <description><![CDATA[<p>
On RooJs.com there's a recent post from <i>Alan Knowles</i> looking at <a href="http://roojs.com/index.php/View/233/How_to_spam_in_PHP.html">how to spam in PHP</a>. No, nothing malicious - it's more about scalability in sending emails from PHP applications.
</p>
<blockquote>
The reason this has been relivant in the last two weeks is two fold, first off, my slow and sometimes painfull <a href="http://roojs.com/mtrack/>rewrite of mtrack</a> has got to the point of looking at email distribution. Along with this I have  a project that needs to distribute press releases, and track responses. Since both projects now use the same underlying component framework (<a href="http://www.roojs.com/mtrack/index.php/Browse/default/Pman.Core">Pman.Core</a> and <a href="http://www.roojs.com/mtrack/index.php/Browse/default/Pman.Base">Pman.Base</a>). It seemed like an ideal time to write some generic code that can solve both issues.
</blockquote>
<p>
He mentions the usual method of generating numerous emails and sending them to a remote SMTP server, but points out that there's  a better way. You can take advantage of queuing and batch sending techniques and, the way he decided to do it for mtrack, using queue tables and a backend runner (a cron job) that uses <a href="http://php.net/proc_open">proc_open</a> to send out multiple emails at once. You can <a href="http://www.roojs.com/mtrack/index.php/File/default/Pman.Core/NotifySend.php?jump=">see the code for it here</a>.
</p>]]></description>
      <pubDate>Mon, 11 Apr 2011 10:20:41 -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: PHP Mail Scripts using SMTP transport, a guide for beginners]]></title>
      <guid>http://www.phpdeveloper.org/news/14333</guid>
      <link>http://www.phpdeveloper.org/news/14333</link>
      <description><![CDATA[<p>
From the Web Development Blog today there's a new tutorial showing you how to <a href="http://www.web-development-blog.com/archives/php-mail-scripts-using-smtp-transport-a-guide-for-beginners/">use STMP from PHP</a> via one of three different tools - the <a href="http://framework.zend.com">Zend_Mail</a> component of the Zend Framework, <a href="http://swiftmailer.org">SwiftMailer</a> and <a href="http://phpmailer.worxware.com">PHPMailer</a>.
</p>
<blockquote>
PHP has a <a href="http://www.finalwebsites.com/forums/topic/php-mail-script">very simple mail function</a> which is used very often for basic text mail messages. What if you need to attach files or if you need to send your e-mail messages via SMTP? Than it's time to use a more advanced script. This is because the standard mail function has only limited standard capabilities.
</blockquote>
<p>
Snippets of code are included for each of the three showing how to send a simple email with the usual "To", "From" and body contents. All of the tools have the ability to include attachments, but that's not included here.
</p>]]></description>
      <pubDate>Mon, 12 Apr 2010 10:47:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org Blog: Sending e-mail using [Remote] SMTP servers/MIME Email]]></title>
      <guid>http://www.phpdeveloper.org/news/12373</guid>
      <link>http://www.phpdeveloper.org/news/12373</link>
      <description><![CDATA[<p>
On the PHPClasses.org blog <i>Manuel Lemos</i> has <a href="http://www.phpclasses.org/blog/package/9/post/1-Sending-email-using-SMTP-servers-of-Gmail-Hotmail-or-Yahoo-with-PHP.html">a recent post</a> looking at a method for sending emails using a remote SMTP server (like Google or Yahoo's) via <a href="http://www.phpclasses.org/blog/package/14/post/1-Sending-messages-to-many-recipients-via-SMTP-in-PHP.html">this package</a>.
</p>
<blockquote>
In most hosting environments, the PHP mail() function is sufficient to send e-mail messages without problems. However, there are situations on which using the mail function is inconvenient and may prevent that your messages reach the destination. [...] Therefore, you may need to find an alternative way for sending your e-mail messages from PHP.
</blockquote>
<p>
The <a href="http://www.phpclasses.org/blog/package/14/post/1-Sending-messages-to-many-recipients-via-SMTP-in-PHP.html">package</a> lets you define a username/password, server, whether to use a SSL connection or not, and if the connection needs to use the TLS protocol.
</p>]]></description>
      <pubDate>Mon, 20 Apr 2009 11:15:29 -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[Richard Heyes' Blog: SMTP for PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9590</guid>
      <link>http://www.phpdeveloper.org/news/9590</link>
      <description><![CDATA[<p>
Since he didn't come across any <a href="http://www.phpguru.org/article.php/195">issues or bug reports</a>, <i>Richard Heyes</i> has officially released his <a href="http://www.phpguru.org/downloads/smtp5/">SMTP class</a> for PHP5 as "out of public beta" and ready for production use.
</p>
<blockquote>
I've not added any new features to the class; I've simply updated it to be, well, better. Plus it uses PHP5's object model better. It's really just an update, ie if you're using the old version and it works, then you have no real reason to update it.
</blockquote>
<p>
You can check out the <a href="http://www.phpguru.org/downloads/smtp5/smtp.phps">source here</a> and an example of it in action <a href="http://www.phpguru.org/downloads/smtp5/example.phps">here</a>.
</p>]]></description>
      <pubDate>Fri, 08 Feb 2008 10:27:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Nohn's Blog:  Using Net_DNSBL and Nagios to check if your SMTP server is listed in a RBL]]></title>
      <guid>http://www.phpdeveloper.org/news/8794</guid>
      <link>http://www.phpdeveloper.org/news/8794</link>
      <description><![CDATA[<p>
<i>Sebastian Nohn</i> has <a href="http://nohn.org/blog/view/id/checking_your_smtp_server_with_net_dnsbl_and_nagios">created a handy little script</a> using PEAR packages to work with a <a href="http://www.nagios.org/">Nagios</a> installation to perform an automatic check - validating that your domain isn't listed with the given black lists.
</p>
<blockquote>
<p>
<a href="http://en.wikipedia.org/wiki/DNSBL">RBLs</a> are a great way to get rid of a lot of SPAM (if you choose the right ones). On the other hand you (and users of your mail server) get in big trouble if your SMTP server gets listed on a common RBL.
</p>
<p>
Checking this manually is a job that sucks a lot, checking this automatically is an easy job with <a href="http://www.nagios.org/">Nagios</a>, <a href="http://www.php.net/">PHP</a>, <a href="http://pear.php.net/package/Net_DNSBL">Net_DNSBL</a> and <a href="http://pear.php.net/package/Console_Getopt">Console_Getopt</a>.
</p>
</blockquote>
<p>
He <a href="http://nohn.org/blog/view/id/checking_your_smtp_server_with_net_dnsbl_and_nagios">includes</a> the parts you'll need - grabbing the PEAR package, the PHP script to make the request and the changes you'll need to make to the configuration files to make it all work together.
</p>]]></description>
      <pubDate>Fri, 05 Oct 2007 10:22:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes' Blog: Testing Components In CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8181</guid>
      <link>http://www.phpdeveloper.org/news/8181</link>
      <description><![CDATA[<p>
<i>Chris Hartjes</i> has <a href="http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/">posted a quick example</a> of a useful method for CakePHP developers - how to test components.
</p>
<blockquote>
Using the test suite is actually quite easy: drop <a href="http://www.lastcraft.com/simple_test.php">SimpleTest</a> into your cake/vendors directly and you're ready to start writing your tests. Having written tests using SimpleTest before it wasn't going to be too hard for me to get them done. But there was one little problem: how do you test a component?
</blockquote>
<p>
He <a href="http://www.littlehart.net/atthekeyboard/2007/06/26/testing-components-in-cakephp/">includes an example</a> of such a test, running it on his Email controller to try to send an email via SMTP.
</p>]]></description>
      <pubDate>Thu, 05 Jul 2007 07:16:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NorthClick Blog: Tips for creating a small but solid newsletter-system]]></title>
      <guid>http://www.phpdeveloper.org/news/6802</guid>
      <link>http://www.phpdeveloper.org/news/6802</link>
      <description><![CDATA[<p>
On the NorthClick blog today, there's a <a href="http://blog.northclick.de/archives/11">quick little set of hints</a> talking about the creation of a simple ("but solid") newsletter system for your website.
</p>
<p>
He breaks it down into the individual steps you'll need to follow:
<ul>
<li>Use a Framwork
<li>Queue in the database
<li>Use SMTP
<li>Check Headers
<li>Test it
</ul>
In the step involving the database, he <a href="http://blog.northclick.de/archives/11">gives the create script</a> you'll need to get the table set up and working. It's not so much a step-by-step tutorial with all of the needed code as it is a general look at what steps to follow when rolling your own newsletter setup.
</p>]]></description>
      <pubDate>Thu, 30 Nov 2006 15:18:00 -0600</pubDate>
    </item>
  </channel>
</rss>

