Page 1 of 1

Add custom header -- possible?

Posted: Wed Mar 12, 2008 5:21 pm
by alex.barylski
Is it possible to add a custom header to each email?

Something like:

Code: Select all

X-Custom: K6354
How would I go abouts adding this field -- or do I need to get into the guts of Swift to do this?

Re: Add custom header -- possible?

Posted: Wed Mar 12, 2008 11:01 pm
by Chris Corbyn

Code: Select all

$message->headers->set('X-Custom', 'K6354');
http://www.swiftmailer.org/wikidocs/v3/ ... on/headers

Re: Add custom header -- possible?

Posted: Thu Mar 13, 2008 5:25 pm
by alex.barylski
Groovy :)