Skip to content

Instantly share code, notes, and snippets.

View lucascolin's full-sized avatar

Luke Holmboe lucascolin

View GitHub Profile
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
$result = $postmark->to("[email protected]")
->subject("Email Subject")
->plain_message("This is a plain text message.")
->attachment('File.pdf', $file_as_string, 'application/pdf')