mirror of
https://github.com/docmost/docmost.git
synced 2025-11-17 18:41:09 +10:00
add STMP_SECURE and changed auth config (#81)
* add STMP_SECURE and changed auth config * relocated logic to mail.provider.ts
This commit is contained in:
@ -87,6 +87,13 @@ export class EnvironmentService {
|
||||
return parseInt(this.configService.get<string>('SMTP_PORT'));
|
||||
}
|
||||
|
||||
getSmtpSecure(): boolean {
|
||||
const secure = this.configService
|
||||
.get<string>('SMTP_SECURE', 'false')
|
||||
.toLowerCase();
|
||||
return secure === 'true';
|
||||
}
|
||||
|
||||
getSmtpUsername(): string {
|
||||
return this.configService.get<string>('SMTP_USERNAME');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user