Skip to content

Instantly share code, notes, and snippets.

@pankajpanday
Created December 19, 2013 12:39

Revisions

  1. pankajpanday created this gist Dec 19, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    Use this to send pdf
    $result = $postmark->to("send-to-email")
    ->subject("Test Mail")
    ->plain_message("This is a plain text message.")
    ->attachment('sample.pdf', base64_encode(file_get_contents('sample.pdf')), 'application/pdf')
    ->send();