NetTalk Central

Author Topic: How to set my own Message-ID ?  (Read 5635 times)

tglomb

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AObit Software
    • Email
How to set my own Message-ID ?
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to set my own Message-ID ?
« Reply #1 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