Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email verification not working #76

Closed
hyperreal64 opened this issue Jul 12, 2024 · 3 comments
Closed

Email verification not working #76

hyperreal64 opened this issue Jul 12, 2024 · 3 comments

Comments

@hyperreal64
Copy link

          > I would recommend resend.com if you don't have a SMTP server.

Hey, I'm using resend.com and I still can't seem to get the email verification to work. I have PDS_EMAIL_SMTP_URL=smtp://resend:<APIKEY>@smtp.resend.com:465/ defined in /pds/pds.env, but I get the following internal error:

Error: Connection timeout\n    at SMTPConnection._formatError (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:790:19)\n    at SMTPConnection._onError (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:776:20)\n    at Timeout.<anonymous> (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:235:22)\n    at listOnTimeout (node:internal/timers:573:17)\n    at process.processTimers (node:internal/timers:514:7)

The formatError bit seems to suggest it's an issue with the way the values in the PDS_EMAIL_SMTP_URL are structured. I've tried various inputs, to no avail.

Originally posted by @hyperreal64 in #44 (comment)

@devinivy
Copy link
Collaborator

It may be worth trying smtps://:

smtps://resend:<APIKEY>@smtp.resend.com:465/

Another thing to consider is whether your API key needs to be URI-encoded to deal with any special characters in it.

@hyperreal64
Copy link
Author

Okay so, my VPS where the PDS is running is hosted on Linode, and Linode blocks ports 25, 465, and 587 to prevent spam. Thankfully resend.com allows using port 2465, so I changed it to

PDS_EMAIL_SMTP_URL=smtps://resend:<APIKEY>@smtp.resend.com:2465/

and it works!

I'll close the issue. Thanks.

@rafaeleyng
Copy link
Contributor

See #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants