NetTalk Central

NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: tglomb on November 13, 2019, 04:04:06 AM

Title: How to set my own Message-ID ?
Post by: tglomb on November 13, 2019, 04:04:06 AM
Hello,
I must set my own Message-ID in the header of an email (to send with NetEmailSend). I can use self.messagID=myownvalue (basicly a GUID), but it's useless because the class always overwrites it.
Background: I send an Email and the receiver sends one or more Emails back (automatically) which belongs to the sent Email. The received Mails can come in arbitrary order. I must match these Mails like a "1 to many" relation.
I tried self.ExtraHeader, this works but the Message-ID entry generated by the class is the first line in the sent Email. My entry via ExtraHeader comes later and so I guess it's ignored by the Receiver.
What is the secret or background of setting an own Message-ID ?
TIA, Thomas
Title: Re: How to set my own Message-ID ?
Post by: Bruce on November 14, 2019, 07:51:38 PM
You could maybe override the code in the CreateMessageID method?
put your own code in there, and don't call the parent...

cheers
Bruce