C# 클래스 formulate.app.Forms.Handlers.Email.EmailHandler

A handler that sends an email.
상속: IFormHandlerType
파일 보기 프로젝트 열기: rhythmagency/formulate

Private Properties

프로퍼티 타입 설명
ConstructMessage string
FilterEmails IEnumerable

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

DeserializeConfiguration() 공개 메소드

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

HandleForm() 공개 메소드

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. ///
리턴 void

PrepareHandleForm() 공개 메소드

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. ///
리턴 void