email integration

* Nest email module with smtp, postmark and console log drivers
* react-email package
This commit is contained in:
Philipinho
2024-05-02 03:12:40 +01:00
parent 48be0c21ae
commit 4c573b9bc2
26 changed files with 2685 additions and 446 deletions

View File

@ -70,4 +70,36 @@ export class EnvironmentService {
isSelfHosted(): boolean {
return !this.isCloud();
}
getMailDriver(): string {
return this.configService.get<string>('MAIL_DRIVER', 'log');
}
getMailHost(): string {
return this.configService.get<string>('MAIL_HOST', '127.0.0.1');
}
getMailPort(): number {
return this.configService.get<number>('MAIL_PORT');
}
getMailUsername(): string {
return this.configService.get<string>('MAIL_USERNAME');
}
getMailPassword(): string {
return this.configService.get<string>('MAIL_PASSWORD');
}
getMailFromAddress(): string {
return this.configService.get<string>('MAIL_FROM_ADDRESS');
}
getMailFromName(): string {
return this.configService.get<string>('MAIL_FROM_NAME');
}
getPostmarkToken(): string {
return this.configService.get<string>('POSTMARK_TOKEN');
}
}