maurymmarques / postmark-cakephp

Postmark plugin for CakePHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Tag's

jboesch opened this issue · comments

In an old Postmark component for Cake 1.3 found here: https://github.com/danielmcormond/postmark-cakephp/blob/master/postmark.php#L119, the author has support for Tag's. It would be relatively easy to add support for it into yours.

Adding this to line 110 in PostmarkTransport.php

// Tag (if there is one)
if(isset($this->_headers['Tag']))
{
    $message['Tag'] = $this->_headers['Tag'];
}

Then people could do:

$email = new CakeEmail();
$email->to('blah@blah.com');
$email->addHeaders(array('Tag' => 'my tag'));
$email->send('this message has been tagged');

Thanks for making this lib btw :)

Implemented.
Thanks for putting the code.

Awesome, thx! For reference this was landed in: 15743fe

I would also suggest updating the README to include an example if people want to add tags to their emails.

I had forgotten
f0c0b67

Improved link to the file also
61b2c6e

Anything, can write.
Thanks