Skip to content

Commit

Permalink
added attachment support
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkitzmiller committed Jan 20, 2011
1 parent f1e3565 commit 7ebfc6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.markdown
Expand Up @@ -58,6 +58,12 @@ You can also pass an array of config options to the initialize(); function.
$this->postmark->subject('Example subject');
$this->postmark->message_plain('Testing...');
$this->postmark->message_html('<html><strong>Testing...</strong></html>');

// add attachments (optional)
$this->postmark->attach(PATH TO FILE);
$this->postmark->attach(PATH TO OTHER FILE);

// send the email
$this->postmark->send();

If using this in a loop, calling $this->postmark->to('to'); again will *replace* the original recipient, and calling $this->postmark->clear(); will set all fields to null.
Expand All @@ -68,6 +74,7 @@ $this->postmark->to('ex1@g.com, ex3@g.com');
ChangeLog
---------
1.3 - Added support for ReplyTo
1.4 - Attachments

Extra
-----
Expand Down

0 comments on commit 7ebfc6c

Please sign in to comment.