I'm using Amazon SES to send emails, I would like to attach a custom header to it before it gets sent to users since I'm making a proxy email system, for replying to threads on my site, so the ID is kept for tracking which thread to post to with the email.
I cannot see how I can attach a custom header from Amazon SES' documentation, apart from this page which explains on what headers they accept but doesn't say how to bind it, I am using this SES wrapper made for PHP.
I want to be able to inject a header named X-Thread-ID
with a number, how would I go on with this?
EDIT: For Jack's answer, I cannot send an email properly, it keeps giving me this error:
CFSimpleXML Object
(
[Type] => Sender
[Code] => InvalidParameterValue
[Message] => Missing final '@domain'
)
My headers is exactly like this
To: myemail@hotmail.co.uk <YES>
From: developer@mysite.com <MySite>
X-Thread-ID: 429038