From 7f0aa5fec646c023bcfe4ed65618607337f7383b Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sat, 28 Oct 2023 22:45:40 +0200 Subject: [PATCH] use uberspace for all mails --- pages/api/auth/[...nextauth].ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts index 7d709d6..ee685ef 100644 --- a/pages/api/auth/[...nextauth].ts +++ b/pages/api/auth/[...nextauth].ts @@ -32,12 +32,15 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) { }), EmailProvider({ server: { - host: 'smtp.sendgrid.net', - port: 587, + host: "wirtanen.uberspace.de", + port: 465, + secure: true, auth: { - user: 'apikey', - pass: process.env.SENDGRID_API_KEY, + user: process.env.SMTP_USER, + pass: process.env.SMTP_PASS, }, + logger: true, + //debug: true, }, from: process.env.FROM_EMAIL, }),