Receiving Contact/Feedback from Website to Email
So I have this basic HTML/CSS/JS application (no frameworks). Then there's a form on the page where I want users to enter some messages/contact info and hit send.
Ideally I want these messages to arrive in my email (gmail)
1. I know about nodemailer but I don't want to use any backend here because of hosting difficulty with backend applications compared to frontend
2. I don't want to have to use an external mail service where the mails would go to. I want them directly in my email.
Please let me know how to go about it
7 Replies
https://www.smtpjs.com/
Has a pretty clean solution for this with a free tier limit of 100 emails/day.
SmtpJS.com - Send Email from JavaScript
Send email from client-side javascript - free js library
Thank you. Iβll look it up
I use Emailjs with Postmark and can recommend it.
I have integrated it into my Next.js application.
Oh cool. Iβm actually looking for something I can use on plain html/css/js application (no backend/framework)
Do they work there?
https://www.emailjs.com/docs/sdk/installation/
@Complexlity
I believe you use https://www.emailjs.com/docs/sdk/installation/#browser-script and then
emailjs.send(serviceID, templateID, templateParams, publicKey);
Thank you! πββοΈ