I'm building a mail client which uses a unique identifier to identify (duh) a conversation and by doing so creating a thread. This unique id is now attached to the subject line. Without the id in the subject line the mail gets 'lost'.
Besides the fact it clothers the subject line it would be much handier if i could add the id to a custom header like so:
$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: Webmaster <[email protected]>' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-myID: MghT3s' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
Is this possible? And would the mail get a higher spam score by doing so?
//edit By replying to the send email with the custom header, the header is not being transfert, so this is indeed not a solution.
//edit2 I'm looking into the in-reply-to header. But don't know if it's used by all email clients.