mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-10 12:32:00 +10:00
email integration
* Nest email module with smtp, postmark and console log drivers * react-email package
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user