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.

You may also like...

  • http://postmarkapp.com Hristo Deshev

    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

  • http://rusiczki.net Janos

    Post it please as I have no experience with Git and I don’t want to mess up. :)

  • http://postmarkapp.com Hristo Deshev

    Done. It is available at:

    http://github.com/hdeshev/postmark-codeigniter

    Thanks for contributing this code. Much appreciated.

    Hristo

  • http://rusiczki.net Janos

    I updated the post with the github link.

  • http://dreadfullyposh.com jeremy

    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

    thanks a lot! I was looking to use postmark in a project, and this is perfect!

  • Rob

    What’s the license on this thing?

  • http://www.rusiczki.net Janos

    @Rob: Public domain.
    Why do you ask?

  • Stef

    You have a closing quote missing after ‘To Name

  • http://rusiczki.net Janos

    Not anymore! :)
    Aka: Thanks, fixed.