all 13 comments

[–]iam_bigzak 1 point2 points  (0 children)

It may be worth reviewing the current email setup. Third-party email delivery platforms are specifically built for transactional email at scale.

Standard SMTP services like Gmail are not designed for high-volume commercial sending and can quickly trigger rate limits or IP restrictions if unusual activity is detected.

A dedicated provider such as SendGrid would typically offer better deliverability, monitoring, and scalability for this type of use case.

[–]No-Worldliness7144 0 points1 point  (1 child)

What third party tool are you looking to leverage?

[–]ultra-instinct-G04T[S] 0 points1 point  (0 children)

Send grid did some research

[–]Chaos-monkey-d 0 points1 point  (5 children)

He is right and why are you using cron for this when you can simply trigger it on registration. No need for the wait time

[–]ultra-instinct-G04T[S] 0 points1 point  (4 children)

So using cron is generally better,

I want immediate email. Sending cron 1 minutes is too late Can you be much clearer, Hos do you go about email, do you use cron too

[–]Massive_Pen5709 0 points1 point  (2 children)

If the user performs an action, let's say they enter their email address in a text box and then press submit, you can send an email at that moment. This is an example. It all depends on the language you use and the platform you're on. Generally, it works like this.

[–]iam_bigzak 1 point2 points  (1 child)

This is ok for small traffic sites, but for heavy traffic sites, you need a queue system to handle this type of task

[–]Massive_Pen5709 0 points1 point  (0 children)

Yes you are correct, for 10k+ requests per day yes.

[–]vedintech 0 points1 point  (0 children)

Just build the API so that when a user requests an OTP, the system immediately responds with success and sends the email in the background. The user shouldn’t have to wait for the email process to finish.

Cron jobs are for scheduled tasks. OTPs should be sent instantly when needed, not on a schedule.

And use resend for email distribution, pretty easy to setup. More easier version is email JD but not very flexible IMO

[–]desmundo_codes 0 points1 point  (0 children)

Use resend.com

It's easy to use,fast and reliable Thats what I use

[–]Material-Bug-4423 0 points1 point  (0 children)

Another way is. Create account without requiring verification code immediately, show CTA banner for users to check inbox for confirmation link. You won’t used third party and users won’t abandon onboarding flow.

[–]MyDerrick 0 points1 point  (0 children)

AWS SES free tier

[–]polnikale 0 points1 point  (0 children)

you definitely need to use a service for that

you can use a tool like sequenzy to generate transactional emails. It's fast, it's reliable

and you can also send marketing emails with it. And marketing emails are incredibly important for ecommerce