9
8 Comments

Send email direct from React or HTML

Hi, I want to send an email from the contact form directly from the React app. I am looking for a super simple solution like install lib and adding one component to the application. I want to send these messages straight from my browser.

I am currently using EmailJS for this, but I need to configure it, add a message template, and connect to my smtp email account, so it's not that simple at all.

Is there an easy way to do this?

on October 19, 2022
  1. 3

    Use tools like sender.net or useplunk.com

    Those are pretty easy tools

    1. 1

      Thanks i'll check these apps

    2. 1

      This comment was deleted 4 years ago

  2. 1

    You can use MailJS, and use sendgrid for transactional services. Easy + cheap !

    1. 1

      Thanks for the answer. I will check your solutions.

  3. 1

    I ended up using AWS SES and then rendering email templates with ReactDOMServer.renderToStaticMarkup. That way you keep the email template as React components.

    1. 1

      Wow that's looks complicated. Thanks for your reply.

  4. 1

    I've used https://www.emailjs.com in the past, it was pretty good.

    1. 1

      Thanks for the answer. I also use emailjs but I wonder if this is the easiest choice? In EmailJS I have to create an account and add a template. I am thinking of a super simple solution - install the library and add the contact form component to my page in React.