Class MailFormSaveProvider
- Namespace
- Dynamicweb.DataManagement
- Assembly
- Dynamicweb.DataManagement.dll
Send the form over mail
[AddInName("DM.Form.SendMail")]
[AddInLabel("Send the form over mail")]
[AddInDescription("This will send an email with all form elements.")]
public class MailFormSaveProvider : FormSaveProvider, IParameterOptions
- Inheritance
-
MailFormSaveProvider
- Implements
- Inherited Members
Properties
MailBCC
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.RecipientBCCEmail")]
[AddInLabel("Recipient BCC e-mail")]
[AddInParameterEditor(typeof(TextParameterEditor), "NewGUI=true")]
public string MailBCC { get; set; }
Property Value
MailCC
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.RecipientCCEmail")]
[AddInLabel("Recipient CC e-mail")]
[AddInParameterEditor(typeof(TextParameterEditor), "NewGUI=true")]
public string MailCC { get; set; }
Property Value
MailEncodingCodePage
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.Encoding")]
[AddInLabel("Encoding")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "NewGUI=true;SortBy=Value")]
public int MailEncodingCodePage { get; set; }
Property Value
MailFrom
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.SenderEmail")]
[AddInLabel("Sender e-mail")]
[AddInParameterEditor(typeof(TextParameterEditor), "NewGUI=true")]
public string MailFrom { get; set; }
Property Value
MailFromName
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.SenderName")]
[AddInLabel("Sender name")]
[AddInParameterEditor(typeof(TextParameterEditor), "NewGUI=true")]
public string MailFromName { get; set; }
Property Value
MailFromNameUseField
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.UseFormFieldForSenderName")]
[AddInLabel("Get from form")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "jsOnClick=ShowFieldSelector('MailFormSaveProvider.SenderName', this)")]
public bool MailFromNameUseField { get; set; }
Property Value
MailFromUseField
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.UseFormFieldForSenderEmail")]
[AddInLabel("Get from form")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "jsOnClick=ShowFieldSelector('MailFormSaveProvider.SenderEmail', this)")]
public bool MailFromUseField { get; set; }
Property Value
MailLogging
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.UseLogging")]
[AddInLabel("Logging")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool MailLogging { get; set; }
Property Value
MailSubject
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.Subject")]
[AddInLabel("Subject")]
[AddInParameterEditor(typeof(TextParameterEditor), "NewGUI=true")]
public string MailSubject { get; set; }
Property Value
MailTemplate
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.Template")]
[AddInLabel("Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "folder=/Templates/DataManagement/Forms/Email;FullPath=false;NewGUI=true")]
public string MailTemplate { get; set; }
Property Value
MailTo
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.RecipientEmail")]
[AddInLabel("Recipient e-mail")]
[AddInParameterEditor(typeof(TextParameterEditor), "NewGUI=true")]
public string MailTo { get; set; }
Property Value
MailToUseField
[AddInParameterGroup("Mail configuration")]
[AddInParameter("MailFormSaveProvider.UseFormFieldForRecipient")]
[AddInLabel("Get from form")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "jsOnClick=ShowFieldSelector('MailFormSaveProvider.RecipientEmail', this)")]
public bool MailToUseField { get; set; }
Property Value
Methods
Save(FormSetting, Dictionary<string, object>)
Save form settings values
public override bool Save(FormSetting formSettings, Dictionary<string, object> keysAndValues)
Parameters
formSettings
FormSettingForm settings
keysAndValues
Dictionary<string, object>settings names and values
Returns
- bool
True if saved successFully