Class ConsentManagementEmail
Inheritance
ConsentManagementEmail
Assembly: SoDataBase.dll
Syntax
public class ConsentManagementEmail
Constructors
ConsentManagementEmail(Person)
Declaration
public ConsentManagementEmail(Person person)
Parameters
Type |
Name |
Description |
Person |
person |
|
ConsentManagementEmail(Int32, Int32, Int32, Int32, String)
Declaration
public ConsentManagementEmail(int personId, int emailAddressId, int emailTemplateId, int cultureLcidId, string subject)
Parameters
ConsentManagementEmail(Int32, String, Int32, Int32, String)
Declaration
public ConsentManagementEmail(int personId, string emailAddress, int emailTemplateId, int cultureLcidId, string subject)
Parameters
ConsentManagementEmail(Int32, String, Int32, Int32, String, String, String)
Declaration
public ConsentManagementEmail(int personId, string emailAddress, int emailTemplateId, int cultureLcidId, string subject, string smtpHost, string defaultAddress)
Parameters
Properties
HasTemplate
Declaration
public bool HasTemplate { get; }
Property Value
Methods
GetBestLanguageForPerson(Int32, Int32)
Declaration
public static string GetBestLanguageForPerson(int personId, int templateId)
Parameters
Type |
Name |
Description |
Int32 |
personId |
|
Int32 |
templateId |
|
Returns
GetBestLanguageForPerson(Int32, String[], Int32, Int32)
Declaration
public static string GetBestLanguageForPerson(int supportLangId, string[] supportedLanguages, int countryId, int overrideLcid)
Parameters
Returns
GetBestLanguageForPerson(String[], Int32)
Declaration
public static string GetBestLanguageForPerson(string[] supportedLanguages, int personId)
Parameters
Type |
Name |
Description |
String[] |
supportedLanguages |
|
Int32 |
personId |
|
Returns
GetCurrentPrincipalPreferredLangauge(Int32)
Get the SO language code to use when translating email and subject
Declaration
public static string GetCurrentPrincipalPreferredLangauge(int overrideCultureLcidId)
Parameters
Type |
Name |
Description |
Int32 |
overrideCultureLcidId |
|
Returns
GetFromAddress()
Get the From: address to use.
- Get the default email address (first) of the logged in user
If in a context without logged in user:
- If override address is provided, use this (default sender adress from smtp config is provided here)
returns empty string otherwise.
Declaration
public string GetFromAddress()
Returns
Type |
Description |
String |
From address to use or empty string
|
GetPersonEmail()
Declaration
public string GetPersonEmail()
Returns
GetSupportedLanguagesForDocTmplate(String)
Declaration
public static string[] GetSupportedLanguagesForDocTmplate(string tmplName)
Parameters
Type |
Name |
Description |
String |
tmplName |
|
Returns
GetTemplateVariables()
Declaration
public TemplateVariables GetTemplateVariables()
Returns
SendNewPersonConfirmationEmail()
Send email to the new person and archive as a document on the newly created person.
Declaration
public void SendNewPersonConfirmationEmail()
SmtpConnectionExists()
Declaration
public bool SmtpConnectionExists()
Returns
Extension Methods
EnumUtil.MapEnums<From, To>(From)