Click or drag to resize
IBizFormMailSenderFactoryGetFormMailSender Method
Returns an email sender instance initiated with given data.

Namespace: CMS.OnlineForms
Assembly: CMS.OnlineForms (in CMS.OnlineForms.dll) Version: 12.0.0
Syntax
C#
IBizFormMailSender GetFormMailSender(
	BizFormInfo formConfiguration,
	IDataContainer formData,
	FormInfo formDefinition = null,
	IEnumerable<string> uploads = null,
	bool encodeEmails = false
)

Parameters

formConfiguration
Type: CMS.OnlineFormsBizFormInfo
Configuration of the online form
formData
Type: CMS.BaseIDataContainer
Data collected from the form
formDefinition (Optional)
Type: CMS.FormEngineFormInfo
Form structure definition, may include changes from alternative form if alt.form is used; if empty, default defition from formConfiguration is used
uploads (Optional)
Type: System.Collections.GenericIEnumerableString
Names of file input fields via which files were recently uploaded
encodeEmails (Optional)
Type: SystemBoolean
Indicates if email content should be encoded; false by default

Return Value

Type: IBizFormMailSender
See Also