Open itacasoft opened 9 months ago
Thanks @itacasoft for the report.
On localhost, there are no welcome emails being sent instead, the login url is logged to the console
Hi @mfts , thank you for your reply. Unfortunately, this does not help to resolve this issue. My web app is not sending emails, hence I'm unable to test its brilliant features. I could try to debug it, but I'm sure my help to the project can be more effective in other roles such as Product Manager (which is currently the job I'm doing :)) or tester. Thx for any help!
On localhost, if emails are sent, all emails go to a resend sandbox (delivered@resend.dev), you can find these emails in resend.com/dashboard
If you want to change that behaviour you can change this line to exclude the test
prop.
I'm sorry this was not documented properly. Thanks for bringing it up and helps making it easier for the next person 🙏
https://github.com/mfts/papermark/blob/77699f3404c538a25e4450f9d94bc933378cbb9c/lib/resend.ts#L33
Hi again @mfts , resend.com/dashboard returns 404. However, I have checked at page resend.com/logs:
As you can see, only my test after having created the API Key is present. I have thought about a firewall problem, but no rules are set for oubound connections. Besides, the fact that the console of CMD prompt doesn't say "connection failure" or something is suspicious, it makes me think that I'm missing an important piece. Thx again.
Hey @itacasoft I refactored the sendEmail function that will return better error messages.
As an aside, emails are not sent in localhost for signup/signins.
@itacasoft do you still experience the issue on the latest version?
Hi all, environment:
I successfully managed to install, run and open the web application with command "npm run dev". But when I try to register on page http://localhost:3000/login, apparently it works, but actually no email is sent.
I registered on Resend with a free plan and set the RESEND_API_KEY value in the .env environment with the API Key copied from Resend web site, but I do not receive any email.
Tries:
Below my application log:
C:\usr\Projects\papermark>npm run dev
▲ Next.js 14.1.0
Experiments (use at your own risk): · missingSuspenseWithCSRBailout
✓ Ready in 4.3s ○ Compiling /middleware ... ✓ Compiled /middleware in 514ms (171 modules) ○ Compiling / ... ✓ Compiled /login in 19.7s (1107 modules) ○ Compiling /api/auth/[...nextauth] ... ✓ Compiled /api/auth/[...nextauth] in 1442ms (1459 modules) [Login URL] http://localhost:3000/api/auth/callback/email?callbackUrl=http%3A%2F%2Flocalhost%3A3000%2Flogin&token=e6c2e33a4ba84b6adeea95cc19f6dcaa352ab8462e6532c216bdfbd4120a188d&email=itacasoft%40gmail.com
Any help very appreciated, thanks.