Skip to content

Instantly share code, notes, and snippets.

View steffentchr's full-sized avatar

Steffen Fagerström Christensen steffentchr

View GitHub Profile
@steffentchr
steffentchr / example.php
Created August 24, 2012 12:37 — forked from drewjoh/example.php
A Simple Postmark PHP Class with Attachments
<?php
require("postmark.php");
$postmark = new Postmark("KEY", "[email protected]");
$fh = fopen("/tmp/test.pdf", "rb");
$data = fread($fh, 4096);
$result = $postmark->to("[email protected]")
->subject("Testing attachments")