How to send an email from website contact form to yourself.
Hey everyone, as the title states, what steps are needed to link a contact form on my website to be able to gather contact form data and then send it to my own gmail address?
I have tried installing nuxt-mail and was able to send an email to myself, but I don't really understand the smtp host and port options.
Am I supposed to sign up with some kind of mail delivery service and use whatever credentials they give me?
I feel kind of lost trying to look this up on my own. Any help would be appreciated!
I feel kind of lost trying to look this up on my own. Any help would be appreciated!
2 Replies
yes, you need to have an external service that allows you to send email called SMTP server
If you're still open for a solution, I'd say it's fairly easy
I have 2 solutions, uses Mailtrap, best thing I found. Or if you have the SMTP details, use server routes and setup nodemailer, I'll share with you my code shortly