Set dynamic reply-to in Mail component

23 Apr '14, 12:36 PM
2,376 Views
Forum Forum Starter - Level 2

Hi,

Sometimes smtp servers may not like changing the From field to the address not existing on that server, so to make a button reply in the sent email in a mail client work correctly i need to set a "Reply to" header in a sent mail. (For example, i want to have a contact form on a website so the support could just click reply in their email client).

How can I do that? I can't find any posibility. I can add a property to the mail unit but it's static, i can't change it in runtime.

Thanks

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 5

If you're using a traditional mail server if you let send mail on behalf of others, for it sends the mail to the mail unit, "From", which no matter what server coreo have, always will be sent as if it were put the mail in the From. 
If you use the Google SMTP for example, security will not let you do this you have to do is to allow this as sending mail and gmail account, which does not serve you if you want to do it dynamically. 

regards

 
x 0
Forum Starter - Level 2

Yes but even with normal server to avoid possible spam/fraud detections of my mails I'd prefer to use "reply-to" header.

 
x 0
Forum Expert - Level 5

So you should only use it as a parameter in the mail template. We carry replacements notifications from database and passing several parameters using java libraries with json, which had only the value of the parameter and reads a notification. 

Or just what you can do is contact a template: 

href="mailto:$$mailReplyto$$">$$mailReplyto$$</a>

And pass the email in the header

 
x 0
Forum Starter - Level 2

Still don't understand how to set "Reply-to" header. This one http://bglug.ca/articles/replyto_header_notes.html

 
x 0
Answer at this question and get points!