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.