Problem when implementing an email function with nodemailer in vercel
Unanswered
Japanese Bobtail posted this in #help-forum
Japanese BobtailOP
Create a queue in the Nextjs 14.2.5 API, what the code does is make a request to two APIs which bring a list of clients and the other the data of a client, this data is passed to pdfkit and sends an email All this is done in a js queue without libraries, the problem I have is that in dev everything works correctly but in Vercel when making the request to the api that handles this process of creating the pdf and sending the emails it simply does nothing or returns errors in the Vercel logs, I tried the same code in Render and it works correctly, I don't know what could cause it not to work in Vercel
14 Replies
@"use php" is the api within the nextjs app?
Japanese BobtailOP
Yes
Can you share code of the queue?
@Japanese Bobtail
Japanese BobtailOP
@"use php"
@Japanese Bobtail So Since vercel is a serverless platform, it won't work there properly
Resend is not serverless
render*
@"use php" <@1196471115028115476> So Since vercel is a serverless platform, it won't work there properly
Atlantic salmon
Even with the api separate from the project this could not be possible right?
@Atlantic salmon updates/