News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Henrik Bjørnskov's Blog:
Stampie an in depth look
December 15, 2011 @ 12:48:25

Henrik Bjørnskov has posted a bit of an in-depth look at Stampie, an abstraction library for sending emails from PHP applications via various service providers (like SendGrid and Mailchimp).

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.

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 the HBStampieBundle bundle for the Symfony2 framework that can make dropping it into your current SF2 application simpler.

0 comments voice your opinion now!
stampie email send tutorial dependencyinjection tool


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Unpacking binary data in PHP

NETTUTS.com: Building a Better BlogRoll: Dynamic Fun with SimplePie and jQuery

Piotr Walczyszyn's Blog: Configuring Eclipse PDT & Flash Builder 4 Plug-in for PHP/Flex development

HowTo Forge: Fedora 8 Server Setup - LAMP, Email, DNS, FTP, ISPConfig - Page 6

Script-Tutorials.com: Creating Your Own Commenting System from Scratch


Community Events











Don't see your event here?
Let us know!


security introduction podcast hhvm application install opinion release unittest composer language hack package performance facebook overview database component framework symfony2

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework