Skip to content

SudoSOS Back-end API / internal/mailer / MailBodyGenerator

Class: MailBodyGenerator<T> ​

Type Parameters ​

Type Parameter
T

Constructors ​

Constructor ​

ts
new MailBodyGenerator<T>(language): MailBodyGenerator<T>;

Parameters ​

ParameterType
languageLanguage

Returns ​

MailBodyGenerator<T>

Methods ​

getContents() ​

ts
getContents(
   contents, 
   options, 
   to): object;

Parameters ​

ParameterType
contentsMailLanguageMap<T>
optionsT
toUser

Returns ​

object

html ​
ts
html: string = styledHtml;
subject ​
ts
subject: string;
text ​
ts
text: string = styledText;

getTextWithSalutation() ​

ts
getTextWithSalutation(text, to): string;

Parameters ​

ParameterType
textstring
toUser

Returns ​

string