Skip to content

Instantly share code, notes, and snippets.

View benwerd's full-sized avatar
🎯
Focusing

Ben Werdmuller benwerd

🎯
Focusing
View GitHub Profile
@benwerd
benwerd / example.php
Created April 12, 2012 19:29 — forked from drewjoh/example.php
A Simple Postmark PHP Class with Attachments And Batches
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
$result = $postmark->to("reciver@example.com")
->subject("Email Subject")
->plain_message("This is a plain text message.")
->attachment('File.pdf', $file_as_string, 'application/pdf')