<?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>Thu, 24 May 2012 11:26:18 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Paul Reinheimer's Blog: Sending Mail]]></title>
      <guid>http://www.phpdeveloper.org/news/17997</guid>
      <link>http://www.phpdeveloper.org/news/17997</link>
      <description><![CDATA[<p>
<i>Paul Reinheimer</i> has <a href="http://blog.preinheimer.com/index.php?/archives/383-Sending-Mail.html">posted about his experiences with sending mail</a>, specifically as it relates to using the <a href="http://framework.zend.com/manual/en/zend.mail.html">Zend_Mail</a> component from the Zend Framework to handle the details.
</p>
<blockquote>
Like every product, Natural Load Testing needs to send some mail, having written and re-written a bunch of different blocks of mail code over the years, I wanted to come up with something that would work now, and continue to serve us well into the future.
</blockquote>
<p>
He chose Zend_Mail to fulfill some of his requirements (multipart emails, sending custom emails, templates for automatic emails) and includes some sample code showing it at work. The result is an object that can be created and, by calling a "basic" method, can send an email based on an HTML template (using the <a href="http://htmlemailboilerplate.com/">HTML Email Boilerplate</a> for the base styling).
</p>]]></description>
      <pubDate>Wed, 23 May 2012 12:58:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Cats Who Code: Sending SMS with PHP and TextMagic: An A to Z guide]]></title>
      <guid>http://www.phpdeveloper.org/news/17736</guid>
      <link>http://www.phpdeveloper.org/news/17736</link>
      <description><![CDATA[<p>
On the Cats Who Code site today there's <a href="http://www.catswhocode.com/blog/sending-sms-with-php-and-textmagic-an-a-to-z-guide">a new tutorial</a> showing how to send SMS messages from your PHP application with the help of the <a href="http://is.gd/textmagic">TextMagic</a> service.
</p>
<blockquote>
Over the years, Short message service (SMS) has become a very important way of communication, and many businesses are looking for easy ways to send automated text messages to their customers. In this tutorial, I'm going to show you how you can send SMS using PHP and a third party service called <a href="http://is.gd/textmagic">TextMagic</a>. Its very easy to do!
</blockquote>
<p>
They step you through the process - creating a TextMagic account, configuring the account with your own password and creating a simple script that includes <a href="http://api.textmagic.com/https-api/sms-api-php-wrapper">their own API library</a> and sends the SMS request.
</p>]]></description>
      <pubDate>Tue, 27 Mar 2012 10:57:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Henrik Bj&oslash;rnskov's Blog: Stampie an in depth look]]></title>
      <guid>http://www.phpdeveloper.org/news/17266</guid>
      <link>http://www.phpdeveloper.org/news/17266</link>
      <description><![CDATA[<p>
<i>Henrik Bj&oslash;rnskov</i> has posted a bit of an <a href="http://henrik.bjrnskov.dk/stampie-in-depth/">in-depth look at Stampie</a>, an abstraction library for sending emails from PHP applications via various service providers (like <a href="http://sendgrid.com/">SendGrid</a> and <a href="http://mailchimp.com/">Mailchimp</a>).
</p>
<blockquote>
So what is Stampie. Stampie is a API wrapper for the most common email sending services. It provides a standard PHP Api to send emails. But mostly it is a project to test TDD and experiment with a couple of different things. Stampie is developed with Dependency Injection and therefore there is a lot of objects. At the start it can be quite cumbersome, but will make a lot of sense if you start to develop and add additional provider.
</blockquote>
<p>
He includes a bit of sample code showing the sending of a message via the SendGrid API backend. Extending the system is simpler thanks to DI and the customizable MailerInterface object type. There's also an AdapterInterface object that can be used to redefine the HTTP connection interface the tool uses. He also points to <a href="http://github.com/henrikbjorn/HBStampieBundle">the HBStampieBundle</a> bundle for the Symfony2 framework that can make dropping it into your current SF2 application simpler.
</p>
]]></description>
      <pubDate>Thu, 15 Dec 2011 12:48:25 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Sending Emails with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/17031</guid>
      <link>http://www.phpdeveloper.org/news/17031</link>
      <description><![CDATA[<p>
In a new tutorial from PHPMaster.com <i>Jason Pasnikowski</i> takes a look at <a href="http://phpmaster.com/sending-emails-with-php/">sending emails with PHP</a> - an introduction to what the language offers and how it can be used to send an HTML version.
</p>
<blockquote>
In most cases your installation of PHP will be capable of sending emails. If you are using a shared host, or if you installed PHP using a package management system like apt-get, more than likely you're all set. You'll really only need to worry about extra configuration if you're compiling PHP from source or if you're running it on Windows. In either case, there are plenty of resources available online to help you out. Because that's all beyond the scope of this article, I'll assume you're set. If not, Google will be your friend.
</blockquote>
<p>
He starts with a simple example using the <a href="http://php.net/mail">mail</a> function but quickly moves on to sending a multi-part email with an attached zip file and HTML content. He includes the all code you'll need and explains each part in detail so you'll know exactly what's going on.
</p>]]></description>
      <pubDate>Mon, 24 Oct 2011 20:08:52 -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[Gonzalo Ayuso's Blog: Howto Send/Read SMSs using a GSM modem, AT+ commands and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16077</guid>
      <link>http://www.phpdeveloper.org/news/16077</link>
      <description><![CDATA[<p>
<i>Gonzalo Ayuso</i> has a new post to his blog today showing how you can <a href="http://gonzalo123.wordpress.com/2011/03/21/howto-sendread-smss-using-a-gsm-modem-at-commands-and-php/">send and read SMS messages</a> with PHP through a GSM modem. The AT+ commands they use can be sent via a serial (or serial-to-usb) interface directly from your application to a local device. He includes both code and some sample AT commands to get the ball rolling.
</p>
<blockquote>
GSM modems are similar than normal modems. They've got a SIM card and we can do the same things we can do with a mobile phone, but using AT and AT+ commands programmatically. That's means we can send (and read) SMSs and create scripts to perform those operations. [...] The idea is the following one: We are going to create a main class called Sms. It takes in the constructor (via dependency injection) the HTTP wrapper or the serial one (both with the same interface). 
</blockquote>
<p>
His base SMS class provides open, close and read methods that talk with the device set in a child class (in this case "/dev/ttySO"). The sendSMS method is defined to take in the number to send to and the message. The AT command examples show how to send the SMS message, read all of the messages waiting and delete an SMS from the device. You can get the full code <a href="https://github.com/gonzalo123/gam-sms">from github</a>.
</p>]]></description>
      <pubDate>Tue, 22 Mar 2011 08:15:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: How to Send Text Messages with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15801</guid>
      <link>http://www.phpdeveloper.org/news/15801</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a new tutorial showing you how to <a href="http://net.tutsplus.com/tutorials/php/how-to-send-text-messages-with-php/">send text messages</a> via SMS directly from your script to the user's cell phone.
</p>
<blockquote>
Text messaging has become extremely widespread throughout the world - to the point where an increasing number of web applications have integrated SMS to notify users of events, sales or coupons directly through their mobile devices. In this tutorial, we will cover the fundamentals of sending text messages with PHP.
</blockquote>
<p>
Their method "cheats" a little bit and uses an interface many of the cell phone providers offer to their subscribers - a link from an email address to SMS. Most providers <a href="http://www.venture-ware.com/kevin/?p=83">have their domains</a> you can send the email to and have it automatically forwarded to the user's cell as a text. Thankfully, this requires nothing more than the <a href="http://php.net/mail">mail</a> function to accomplish. They include the sample code and HTML+CSS to make a basic form as well as mention <a href="http://phpmailer.worxware.com/">PHPMailer</a> as a more powerful mailing alternative.
</p>]]></description>
      <pubDate>Tue, 25 Jan 2011 10:14:39 -0600</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[Jani Hartikainen's Blog: Sending files better: Apache mod_xsendfile and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12083</guid>
      <link>http://www.phpdeveloper.org/news/12083</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> <a href="http://codeutopia.net/blog/2009/03/06/sending-files-better-apache-mod_xsendfile-and-php/">has a suggestions</a> of a way to "send files better" in his latest post by using the <a href="http://tn123.ath.cx/mod_xsendfile/">mod_xsendfile</a> module for Apache and a bit of PHP.
</p>
<blockquote>
I have previously written a quick post on <a href="http://codeutopia.net/blog/2008/10/10/php-tip-how-to-make-a-file-downloadable-through-your-script/">making files downloadable through PHP scripts</a>. The example in the post reads the file itself into a variable, and as pointed out in the comments, it's not necessarily a very good idea especially if you deal with large files. Recently at work, we needed a reliable way to send files to users' browser, and I decided to take a look at mod_xsendfile, as suggested by <a href="http://www.noginn.com/">Tom Graham</a>.
</blockquote>
<p>
He starts with some of the benefits of using the xsendfile method over other, more traditional ways. Moving on, he gets to the good stuff - download, installation and a code example of how to use the module (via a X-Sendfile header).
</p>]]></description>
      <pubDate>Fri, 06 Mar 2009 12:57:34 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer.com: Sending Email with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11346</guid>
      <link>http://www.phpdeveloper.org/news/11346</link>
      <description><![CDATA[<p>
On the Developer.com website today, <i>Jason Gilmore</i> has <a href="http://www.developer.com/open/article.php/3782831">a new tutorial</a> covering a important feature of any based PHP install (unless disabled, of course) that is widely taken advantage of - sending emails.
</p>
<blockquote>
Email plays a crucial role in website development, whether you'd like to confirm a new registrant's email address, recover a lost password, or provide prospective clients with a convenient means to contact you. [...] In this tutorial, I'll introduce you to several solutions for sending email using PHP, including PHP's native mail() function, PEAR's Mail package, and the Zend Framework.
</blockquote>
<p>
He starts with some of the fundamentals of mail - the difference between POP3 and SMTP, Sendmail, etc - before moving on to an example of the <a href="http://www.php.net/mail">mail</a> function's usage. He does the same with the PEAR Mail package and the <a href="http://framework.zend.com/manual/en/zend.mail.html">Zend_Mail</a> component of the Zend Framework.
</p>]]></description>
      <pubDate>Wed, 05 Nov 2008 07:58:47 -0600</pubDate>
    </item>
  </channel>
</rss>

