#auto email : how

32 messages · Page 1 of 1 (latest)

tawny void
#

Hey all

i've been building web app using Nextjs.
And I was wondering how could i implement auto mailing feature not using third party api like of mail chimp.

when user fills up the form. I get their information in my database.
Do i have to make server components? or what else so that they receive the mail from my web app that their booking has been confirmed.

please provide me suggestions or resources on how can i acheive this.
thanks

old bronzeBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

viscid thicket
#

I dont thinks thats possible

#

Also for security purposes it is better to use third party unless you know what your doing

real holly
#

Yeah, u should use third party. checkout Resend, it's pretty good

viscid thicket
#

Yeah i use that one too *^

#

Some email third party libraries do require you use server components for security purposes also such as Resend (to be handle in server to hide api keys)

#

Other allow client side

hot flume
#

it is possible, but you have to create a mailserver. I would buy a VPS and a domain, then use something like docker mailserver to set it up. Make sure you setup all the security like DMARC, DKIM, SPF so gmail, yahoo, microsoft can receive your emails.

Lastly use nodemailer or emailjs to send an email using SMTP.

#

resend is probably the best if you don't want to spend a few days learning SMTP and other boring stuff.

tawny void
tawny void
tawny void
hot flume
#

no

tawny void
mystic lava
#

the issue with getting cheap is that they will have the worst Ip reputation and get insta spammed (ik this because i am curretly trying to deal with it) - but if users are willing to go to the spam folder its pretty cool

hot flume
#

it's the cheapest I've found and so far they are really reliable

mystic lava
hot flume
#

I am hosting a next.js storefront, express server (for store backend), postgres (for my store project), redis (and mailserver). The only problem is the website get's slow if there are like 5 people on it at the same time (for 1 user it works great), but I use this only as a demo for my storefront so it's not a problem. never had any issues with the mailserver.

viscid thicket
#

Hmm even on a demo it shouldnt be slow for that many people unless there extra network request or other issues.

mystic lava
#

i think its just not able to parallel

viscid thicket
#

Oh okay thx yeah i remember now express.js is single thread unless other modules used for parallelism.

tawny void
hot flume
#

yes, 5 people sending requests every 200ms

#

i tested this using postman

#

but you shouldn't have this problem if you are only hosting mailserver

#

I was really testing the limits of it with 2 next.js applications, express server, postgres, redis and mailserver at the same time on 4GB ram.

tawny void
hot flume
#

yes