Dynamic ReplyTo address in form

Ginger Henry asked on May 7, 2018 18:00

Is there a way to customize a dynamic replyTo address based on a form field the customer fills out? And then send the form information in an email notification with that replyTo as a header?

Correct Answer

Peter Mogilnitski answered on May 8, 2018 05:40

Thre is no reply to, we have Sender email and Recipient emails and macro are available for all fields in Notification email tab. Lets say your form has a drop down called department (1 - Sales, 2 - Marketing, 3 - Accounting) When a users submits your form - department field gets one of those IDs:

{% 
result = "default@acme.com"; 
if(department == "1") {result ="sales@acme.com"}
if(department == "2") {result = "marketing@acme.com"}
if(department == "3") {result = "accounting@acme.com"}
return result;
|(identity)GlobalAdministrator%}

Just convert it in one line and put into Sender email or Recipient emails :)

2 votesVote for this answer Unmark Correct answer

Recent Answers


Ginger Henry answered on May 8, 2018 23:03

That helped a bunch! Much appreciated.

0 votesVote for this answer Mark as a Correct answer

Eddy Semaan answered on May 23, 2018 23:13

is this the official Kentico respond to this inquiry? Kentico doesn't allow the specification of the reply-to value in the SMTP header?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.