Adding "IN-REPLY-TO" keyword to a mail header with UPOPMAIL

Author: georges.herzet@gmail.com (jnrHerzet)

Hi , Is there a way to set the "IN-REPLY-TO" field in a mail header when sending it with UPOPMAIL ?   The keyword isn't mentioned in the documentation (sendMail) and I need it to be able to respond to automatically generated mails.    I'd like to write something like this :  $$header = "TO=doctor.gonzo@my.net;FROM=%%$user%%%@shrubco.com;SUBJECT=Conference Registration;IN-REPLY-TO=incomingMessageID" activate "UPOPMail".SendMail("mailhost.wangle.com", $$header, MAIL_MESSAGE, "",0)  Many thanks ... Best Regards, Georges  

 

4 Comments

  1. Hi Georges, Which Uniface version are you using? With Uniface 9.4 the UPOPMAIL component was enhanced to support sending HTML email. As a result of this a new operation was introduced that is called Send that allows you send emails as text or HTML. In contrast to the old SendMail Operation the new operation defines the message header using the following operations: * SetToList * SetCCList * SetBCCList * SetReplyTo * SetFrom * SetSubject * SetPrioritySetMessageId I guess that ReplyTo is what you ar looking for: "Specify the email address that is to receive any replies to the current message." Hope this helps. Best regards, Daniel Iseli Uniface Technical Support


    Author: diseli (daniel.iseli@uniface.com)
  2. No, that's not the one he's asking for, that header is "when replying to this message send the reply to this email", what he's looking for is access to the IN-REPLY-TO header, which is "This message is a reply to message Id XXXXXXXX".  I don't think any of those headers are it. We used to hack message headers by putting carriage returns and new header info in the Subject, but since it switched to unicode and therefore encodes the subject this isn't possible any more.  I haven't investgated whether the same trick would allow access to the headers section from (say) SetReplyTo (so you do something like)   XXX->SetReplyTo("me@my.domain%%^IN-REPLY-TO=XXXXXXXXXXXXX") and the %%^ puts in a newline and therefore access to a new header.  But I do know the others (SetToList,SetCCList,SetBCCList & SetFrom) parse the input, so it can't be done there. SetSubject encodes the input so that doesn't work, SetPriority is numeric only so no chance there. 


    Author: Iain Sharp (i.sharp@pcisystems.co.uk)
  3. Iain Sharp said No, that's not the one he's asking for, that header is "when replying to this message send the reply to this email", what he's looking for is access to the IN-REPLY-TO header, which is "This message is a reply to message Id XXXXXXXX".  I don't think any of those headers are it. We used to hack message headers by putting carriage returns and new header info in the Subject, but since it switched to unicode and therefore encodes the subject this isn't possible any more.  I haven't investgated whether the same trick would allow access to the headers section from (say) SetReplyTo (so you do something like)   XXX->SetReplyTo("me@my.domain%%^IN-REPLY-TO=XXXXXXXXXXXXX") and the %%^ puts in a newline and therefore access to a new header.  But I do know the others (SetToList,SetCCList,SetBCCList & SetFrom) parse the input, so it can't be done there. SetSubject encodes the input so that doesn't work, SetPriority is numeric only so no chance there.   

    Thanks for clarifying this, Iain. I guess, in that case this is currently not possible using UPOPMAIL. Sorry. Looks like a valid candidate for the wish list (once it's up-and-running again on the new site).


    Author: diseli (daniel.iseli@uniface.com)
  4. Thanks for your answers !   We use Uniface 9.7 .   And , right,  it's the "In-Reply-To" attribute which I want to use, not the "ReplyTo".   So this would be a "nice to have". 


    Author: jnrHerzet (georges.herzet@gmail.com)