OpenBuildings / postmark

Postmark transport for Swift Mailer
https://github.com/OpenBuildings/postmark
BSD 3-Clause "New" or "Revised" License
16 stars 8 forks source link

Adding support for Postmark Tags #34

Open jxmallett opened 8 years ago

jxmallett commented 8 years ago

Postmark has support for tagging emails to aid with statistics. I think we can use the Swift ID property to do the same thing.

Swift automatically generates a 'unique' ID like [hash]@[domain] but you can set your own with $message->setId('blah'); and this bit of code will tag the Postmark message with that ID.

I think this would technically be a BC break because it changes the default behaviour - Emails used to be sent with no tag, but they'll now default to sending with Swift's auto-generated tag.

hkdobrev commented 6 years ago

@jxmallett Sorry for the late response! Do you think you could look into the tests and rebase on top of latest master? If not, that's fine - just let me know and I'll try to update it.