feat: add configurable sender name and allow users to choose between system and personal SMTP accounts when sending emails
Build and Push Multi-Platform Images / build-and-push (push) Successful in 34s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 34s
This commit is contained in:
@@ -28,7 +28,9 @@ export class MailService {
|
||||
smtpOverride?: { host: string; port: number; secure: boolean; user: string; pass: string; from: string };
|
||||
}): Promise<void> {
|
||||
let transporter = this.transporter;
|
||||
let from = this.configService.get<string>('SMTP_FROM', 'paperless@localhost');
|
||||
const globalFromEmail = this.configService.get<string>('SMTP_FROM', 'paperless@localhost');
|
||||
const globalFromName = this.configService.get<string>('SMTP_FROM_NAME', '');
|
||||
let from = globalFromName ? `"${globalFromName}" <${globalFromEmail}>` : globalFromEmail;
|
||||
|
||||
if (options.smtpOverride) {
|
||||
const o = options.smtpOverride;
|
||||
|
||||
Reference in New Issue
Block a user