C# Class formulate.app.Forms.Handlers.Email.EmailHandler

A handler that sends an email.
Inheritance: IFormHandlerType
Datei anzeigen Open project: rhythmagency/formulate

Private Properties

Property Type Description
ConstructMessage string
FilterEmails IEnumerable

Public Methods

Method Description
DeserializeConfiguration ( string configuration ) : object

Deserializes the configuration for an email handler.

HandleForm ( FormSubmissionContext context, object configuration ) : void

Handles a form submission (sends an email).

PrepareHandleForm ( FormSubmissionContext context, object configuration ) : void

Prepares to handle to form submission.

In this case, no preparation is necessary.

Private Methods

Method Description
ConstructMessage ( Form form, IEnumerable data, IEnumerable files, IEnumerable payload, EmailConfiguration config ) : string

Constructs an email message from the form fields.

FilterEmails ( IEnumerable emails ) : IEnumerable

Filters the email addresses to only return those allowed by the whitelist.

Method Details

DeserializeConfiguration() public method

Deserializes the configuration for an email handler.
public DeserializeConfiguration ( string configuration ) : object
configuration string /// The serialized configuration. ///
return object

HandleForm() public method

Handles a form submission (sends an email).
public HandleForm ( FormSubmissionContext context, object configuration ) : void
context FormSubmissionContext /// The form submission context. ///
configuration object /// The handler configuration. ///
return void

PrepareHandleForm() public method

Prepares to handle to form submission.
In this case, no preparation is necessary.
public PrepareHandleForm ( FormSubmissionContext context, object configuration ) : void
context FormSubmissionContext /// The form submission context. ///
configuration object /// The handler configuration. ///
return void