Custom SMTP | Edge functions

I am using custom smtp to send mail via office365, this is set up in supabase and is working fine. Now I want to set up edge function to send e-mails, but it is not working.
Email sending error: Error: Unexpected socket close
    at Timeout._onTimeout (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/nodemailer/6.9.10/lib/smtp-transport/index.js:190:31)
    at cb (ext:deno_node/internal/timers.mjs:64:31)
    at eventLoopTick (ext:core/01_core.js:203:13)


Any idea what is going on here? I based my edge function off of this: https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/send-email-smtp/index.ts
GitHub
The open source Firebase alternative. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications. - supabase/supabase
Was this page helpful?