Class ConsentManagementEmail
Inheritance
ConsentManagementEmail
Assembly: SoDataBase.dll
Syntax
public class ConsentManagementEmail
Properties
HasTemplate
Declaration
public bool HasTemplate { get; }
Property Value
Methods
CreateAsync(Person, CancellationToken)
Declaration
public static Task<ConsentManagementEmail> CreateAsync(Person person, CancellationToken cancellationToken = default)
Parameters
Returns
CreateAsync(int, string, int, int, string, CancellationToken)
Declaration
public static Task<ConsentManagementEmail> CreateAsync(int personId, string emailAddress, int emailTemplateId, int cultureLcidId, string subject, CancellationToken cancellationToken = default)
Parameters
Returns
GetBestLanguageForPersonAsync(int, int, CancellationToken)
Declaration
public static Task<string> GetBestLanguageForPersonAsync(int personId, int templateId, CancellationToken cancellationToken = default)
Parameters
Returns
GetBestLanguageForPersonAsync(int, string[], int, int, CancellationToken)
Declaration
public static Task<string> GetBestLanguageForPersonAsync(int supportLangId, string[] supportedLanguages, int countryId, int overrideLcid, CancellationToken cancellationToken = default)
Parameters
Returns
GetBestLanguageForPersonAsync(string[], int, CancellationToken)
Declaration
public static Task<string> GetBestLanguageForPersonAsync(string[] supportedLanguages, int personId, CancellationToken cancellationToken = default)
Parameters
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
|
GetPersonEmailAsync(CancellationToken)
Declaration
public Task<string> GetPersonEmailAsync(CancellationToken cancellationToken = default)
Parameters
Returns
GetSupportedLanguagesForDocTemplateAsync(string, CancellationToken)
Gets template languages for a given document template filename
Declaration
public static Task<string[]> GetSupportedLanguagesForDocTemplateAsync(string tmplName, CancellationToken cancellationToken = default)
Parameters
Returns
Type |
Description |
Task<string[]> |
SuperOffice language codes: ["US", "SW", "GE"] or empty array if no language-specific variant exists
|
GetTemplateVariables()
Declaration
public TemplateVariables GetTemplateVariables()
Returns
SendNewPersonConfirmationEmailAsync(CancellationToken)
Send email to the new person and archive as a document on the newly created person.
Declaration
public Task SendNewPersonConfirmationEmailAsync(CancellationToken cancellationToken = default)
Parameters
Returns
SmtpConnectionExists()
Declaration
public bool SmtpConnectionExists()
Returns
Extension Methods