improve add account flow

This commit is contained in:
grimhilt committed 2023-07-16 16:24:30 +02:00
1 parent f40b6758de
commit ae73326820
8 files changed
+29 -24

No files matched your search

+3 -4
View File
@@ -5,12 +5,11 @@ export class SmtpInstance {
transporter: Transporter;
user: string;
constructor(account: { user: string; password: string }) {
// todo store other data
constructor(account: { user: string; password: string, smtp_host: string, smtp_port: number }) {
this.user = account.user;
this.transporter = nodemailer.createTransport({
host: "smtp.gmail.com",
port: 465,
host: account.smtp_host,
port: account.smtp_port,
secure: true,
auth: {
user: account.user,