Closed louis-l closed 2 years ago
The message ID in the headers is the one that is generated by swift. For SES, the message_id is set to the value in mail->messageId
that is set by SES so that it can track SES events.
Thanks @jdavidbakr
So does that mean the actual ID got sent out is message_id?
If I want to pass the message ID to "References" and "In-Reply-To" headers, I should use the message_id
in sent_emails table, right?
I'm not fully understanding what you are asking. Are you trying to do something like this? https://github.com/jdavidbakr/mail-tracker#passing-data-to-the-event-listeners
@jdavidbakr
Yes, Im trying to do this:
$message->getHeaders()->addTextHeader('References', 'previous_message_id');
$message->getHeaders()->addTextHeader('In-Reply-To', 'previous_message_id');
I need to retrieve the previous_message_id
from sent_emails table.
Hi there,
I have a need to use the sent email message ID and I start looking into the sent_emails table and realized in
headers
column, there is a Message-ID key that has different value comparing to one inmessage_id
column.For instance:
headers
is:19af1c41dbb91e5df0f5ba9cb9eaed7b@swift.generated
message_id
value is:0108017f71202927-4718d6c3-8547-4f89-a995-fa9a5d16749c-000000
I also checked the
meta
column, and both IDs appear there as well:So my question is: which one is the actual ID?
Cheers,