begoonB
Deno3y ago
begoon

Outgoing connection over TLS (port 465) from the deno deployment is failing

I am trying to send an email via Gmail SMTP. The code is trying to connect to smtp.gmail.com on port 465. The connection fails with the error below. Locally, from my mac, the code works as expected.

Is it the limitation of the edge platform?

The error:
    at async Object.connectTls (ext:deno_net/02_tls.js:36:51)
    at async https://raw.githubusercontent.com/begoon/denomailer/main/client/basic/client.ts:25:16
    at async SMTPClient.send (https://raw.githubusercontent.com/begoon/denomailer/main/client/basic/client.ts:57:5)
    at async Module.send (file:///src/bot/emailer.ts:23:5)
    at async file:///src/main.ts:232:5
    at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
    at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
    at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
    at async Application.#handleRequest (https://deno.land/x/oak@v12.6.0/application.ts:470:9)
8/31/2023, 6:40:49 PM
gcp-europe-southwest1
response: { status: 404, type: undefined, hasBody: false, writable: true }
8/31/2023, 6:40:49 PM
gcp-europe-southwest1

[uncaught application error]: ConnectionRefused - Connection refused (os error 111)
Was this page helpful?