Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick DeVivo patrickdevivo

View GitHub Profile
@mloberg
mloberg / example.php
Created Mar 10, 2011
A simple Postmark PHP Class
View example.php
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
if($postmark->to("reciver@example.com")->subject("Email Subject")->plain_message("This is a plain text message.")->send()){
echo "Message sent";
}
You can’t perform that action at this time.