Forms module:Notification from

Status: Not reviewed. 1 ratings.

It would be useful to have a setting "Send notification from this email" on the email-property. Some people want to be able to click "reply" directly on the notifaction email.
Suggested by Helene Svelle
Re: Forms module:Notification from
13.10.2011 - 04:32
I agree, that could be nice, however, there is a workaround:

If you create a class that inherits and replaces the base form class you can override the OnSubmit method:

public override void OnSubmit(Native.WebFormSubmit submit) {
this.NotificationEmailFromAdr = submit.FromEmail;

For this to work, you have to check the "Send form confirmation to this email", on the email-property (and the submitter will also receive a receipt..)
Re: Forms module:Notification from
13.10.2011 - 06:28
If you don't want to send a receipt to the user, you could always parse the submitted data as xml:

XElement submitData = XElement.Parse(submit.SubmitData);
var emails = (from field in submitData.Descendants("Field")
where field.Attribute("Id").Value == "email"
select field.Attribute("Value").Value);

if (emails.Count() > 0) {
this.NotificationEmailFromAdr = emails.First();
Re: Forms module:Notification from
09.12.2011 - 05:31

If you put email (which in this case, is the id of the e-mail field in the schema) in the "notification from email", the the person notified will be able to click reply directly to the sender.

You must login to post comments