Merge branch 'SMTP-IgnoreTLS' into Merged-Downstream

This commit is contained in:
Ryan Palmer
2024-09-16 09:59:34 +10:00
8 changed files with 29 additions and 15 deletions

View File

@ -98,6 +98,13 @@ export class EnvironmentService {
return secure === 'true';
}
getSmtpIgnoreTLS(): boolean {
const ignoretls = this.configService
.get<string>('SMTP_IGNORETLS', 'false')
.toLowerCase();
return ignoretls === 'true';
}
getSmtpUsername(): string {
return this.configService.get<string>('SMTP_USERNAME');
}