Is it possible, through using a Kentico Form when sending an email, to take an 'email' field on the

Matt Tribble asked on April 27, 2015 17:16

We are using our own exchange server to send form emails generated by Kentico emails to other recipients within our exchange environment. One of the fields on this form is the 'email' of the person who is filling out the form. When the target inbox receives the form it comes from the address that we have set to be the sender of the forms, for example Form@us.com.

Is there a way to set it so that the sender actually looks like it is from whatever email is in the 'email' field of the form while still using Form@us.com as the part that communicates with Exchange to send the email itself?

Recent Answers


Brenden Kehren answered on April 27, 2015 18:16

There are two things you could do

  • clone the Biz Form webpart and handle that changing of the email address in the OnAfterSave or OnBeforeSave events of the web part.
  • create a custom event handler to check when a new form item is being inserted and make those modifications.
0 votesVote for this answer Mark as a Correct answer

Matt Tribble answered on April 27, 2015 18:56

Thanks for the quick response! So with the method above, whatever email that someone entered into the form as a field would show up as an actual email address as far as outlook is concerned and could be responded to like a normal email rather than seeing 'Form@us.com'.

We were concerned that changing the sender address on the form before the email actually got sent would make it fail because then it wouldn't see 'Form@us.com' and be routed correctly by the email server.

0 votesVote for this answer Mark as a Correct answer

Bill Tran answered on April 28, 2015 20:57

Depending on your exchange server's settings, it may allow you to input any email address in the from field.

However, in your situation, you'll need to send the email manually or if your using on-line forms you can probably use a macro in the From email for the email notification referencing the email entered by the user.

You can check if you can send emails using any email in the from address by going to System > Emails and sending out an email using any email address. Keep in mind there are restrictions on your email server such as if you don't use an email from the exchange server, it may fail.

0 votesVote for this answer Mark as a Correct answer

Charles Matvchuk answered on April 29, 2015 00:50 (last edited on April 29, 2015 00:52)

You could also have your System Admin's whitelist or use a specific resolution so it allows you to spoof the email sender. Spoofing is when you send from one email and display show that it is coming from another. Typically it is frowned upon, since spammers use it zealously. But in certain business practices I find it acceptable.

0 votesVote for this answer Mark as a Correct answer

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