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
jakemstar
jakemstarβ€’2y ago
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
Complexlity
ComplexlityOPβ€’2y ago
Thank you. I’ll look it up
π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿
I use Emailjs with Postmark and can recommend it. I have integrated it into my Next.js application.
Complexlity
ComplexlityOPβ€’2y ago
Oh cool. I’m actually looking for something I can use on plain html/css/js application (no backend/framework) Do they work there?
π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿
I believe you use https://www.emailjs.com/docs/sdk/installation/#browser-script and then emailjs.send(serviceID, templateID, templateParams, publicKey);
EmailJS
SDK Installation | EmailJS
Guide goes through the various methods used to install EmailJS SDK
Complexlity
ComplexlityOPβ€’2y ago
Thank you! πŸ™‡β€β™€οΈ
Want results from more Discord servers?
Add your server