Postie Reply-To

Started by PaulSamuelson, May 06, 2014, 10:13:20 AM

Previous topic - Next topic

PaulSamuelson

Is there a way to have Postie include a Reply-To address? I have automated messages coming from a robot, but occasionally users reply to that address, which is not monitored.

Thanks,

Paul Samuelson

Russell_Williams

The second parameter of the kInit should act as a reply-to, will that work?

kInit(host,fromaddr,userid,password,port)


PaulSamuelson

I would like to use a different address for From and Reply-To.

I want them to know it came from a robot, but have replies to go to a person.

Thanks,

Paul

Deana

Paul,

Try appending desired (reply-to) header line to the subject line after a @CRLF. For Example:

Code (winbatch) Select
AddExtender("WWPST44I.DLL")

strSubject="How to add Repy-to header"

; A common technique used by many message systems is to use a time and date stamp along with the local host's domain name, e.g., 950124.162336@example.com
replyemail = 'replyee@myserver.com'
strHeader = "Reply-to:  " : replyemail
strSubjectHeader = strSubject:@CRLF:strHeader

kInit("mail.myserver.com","support@myserver.com","","","")
kDest("soandso@yourserver.com","","")
bResult = kSendText(strSubjectHeader,"How to add Reply-to header using Postie. Check my header.","","")
If bResult
   Message("Message","Sent")
Else
   Message("Error",kStatusInfo())
EndIf
Exit
Deana F.
Technical Support
Wilson WindowWare Inc.

PaulSamuelson

It worked! Thank you.

According to RFC 2822, header fields are listed on their own lines, separated by CRLF. Postie can be tricked into sending them by sending them as additional lines in the subject field.

Thanks,

Paul