Skip to content

Instantly share code, notes, and snippets.

View bergonom's full-sized avatar

Joel Berghoff bergonom

View GitHub Profile
@bergonom
bergonom / example.php
Created August 4, 2011 10:22
A simple Postmark PHP Class
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
if($postmark->to("reciver@example.com")->cc('ccreciever@example.com')->bcc('bccreciever@example.com')->subject("Email Subject")->plain_message("This is a plain text message.")->send()){
echo "Message sent";
}