Postmark library for CodeIgniter
Friday afternoon I received an invite to try out the beta version of Postmark, a transactional e-mail delivery service from Wildbit, the guys and gals who made Beanstalk and Newsberry. What are transactional e-mails, you might ask? The answer is: e-mails generated by a web application after an user action such as registration, requesting a password reminder, receiving a reply to a comment, etc. The problem me and many developers faced is that sometimes the client’s servers are blacklisted and these e-mails land in the users’ spam folder. This is where Postmark comes to the rescue, hopefully – instead of using the built in mail function of your web development language of choice you issue a call to Postmark which sends out the e-mail from their “well regarded” servers so that hopefully they land in the user’s inbox.
To give something back, I’ve put together a CodeIgniter library for this service. This grants easy integration of Postmark with your CodeIgniter web app: you upload two files, fill in your API key then include the library where needed and send mails away.
Download & credits
The best fork of this library is this one: zackkitzmiller/postmark-codeigniter. You can download the library and contribute as needed on GitHub.
Based on Markus Hedlund’s Postmark class for PHP.
Installation
Obsolete: see GitHub.
Usage guide
Obsolete: see GitHub.
If something goes wrong the library and the Postmark service outputs quite user friendly error messages.
Hopefully this will come in handy for some of you.
10 Responses to “Postmark library for CodeIgniter”
Leave a Reply

Hristo Deshev on January 25th, 2010
Hey, János,
Mind posting the code to github? Or letting me post it? I’m sure some PHP masters would start some crazy forking :-)
Hristo
Janos on January 25th, 2010
Post it please as I have no experience with Git and I don’t want to mess up. :)
Hristo Deshev on January 25th, 2010
Done. It is available at:
http://github.com/hdeshev/postmark-codeigniter
Thanks for contributing this code. Much appreciated.
Hristo
Janos on January 25th, 2010
I updated the post with the github link.
jeremy on February 23rd, 2010
nice work. i’ve been watching postmark as it develops, and i’m looking forward to using it on projects after it launches.
your library will be a big help with that.
cody on September 2nd, 2010
thanks a lot! I was looking to use postmark in a project, and this is perfect!
Rob on October 27th, 2010
What’s the license on this thing?
Janos on October 28th, 2010
@Rob: Public domain.
Why do you ask?
Stef on September 5th, 2011
You have a closing quote missing after ‘To Name
Janos on September 6th, 2011
Not anymore! :)
Aka: Thanks, fixed.