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 ​
| Parameter | Type |
|---|---|
language | Language |
Returns ​
MailBodyGenerator<T>
Methods ​
getContents() ​
ts
getContents(
contents,
options,
to): object;Parameters ​
| Parameter | Type |
|---|---|
contents | MailLanguageMap<T> |
options | T |
to | User |
Returns ​
object
html ​
ts
html: string = styledHtml;subject ​
ts
subject: string;text ​
ts
text: string = styledText;getTextWithSalutation() ​
ts
getTextWithSalutation(text, to): string;Parameters ​
| Parameter | Type |
|---|---|
text | string |
to | User |
Returns ​
string