Sending Email from a React JS Application – A Developer Guide

Guides Sending Email from a React JS Application – A Developer Guide · 2 min read 4 sections
1

How to send email using React JS

This is a guide to setting up an email sending server and API using Hexamail POP3 Downloader to allow sending email from a React JS app. The advantage of using Hexamail POP3 Downloader is that ther eare no per-message fees, no ongoing subscription and no GDPR related privacy issues as the server runs on your in house or hosted Windows/Linux server and is a single one-time permanent license.

Let's break the guide into some easy steps:

2

Installing

Please consult the guide for setting up Hexamail POP3 Downloader on Windows or Linux

//https://appdividend.com/2017/08/11/send-email-in-node-js/
3

Configuring the sending server

Now you can begin configuring Hexamail POP3 Downloader.

  • Go to the Developer options sheet in the administration console
Configuring webhooks
Configuring webhooks
  • Press Add... to add a new webhook
  • Configuring a new webhook
    Configuring a new webhook
  • Specify a name and URL for your webhook. Currently this will trigger on every email processed. We will add some rules to make it only trigger on specific email:
  • Configuring a webhook rule
    Configuring a webhook rule
  • Press Add to add rules to your webhook. Each rule ANDs the various restrictions but any rule can be matched to trigger the webhook. In this way you can have AND and OR clauses on your webhook. In this example we simply trigger on a specific email address in the From field of the email. You can trigger on multiple addresses or use wildcards like * (to match multiple characters) and ? to match any single character.
  • Once done press OK to exit the rule, and OK to exit the hook and then remember to press APPLY once all your rules and hooks are added to send the new configuration to the server
  • 4

    How Hexamail Can Help

    Hexamail Nexus provides a developer-friendly email processing gateway with REST API and webhook support, making it straightforward to send and receive email from React or other JavaScript applications. Hexamail Server provides a full SMTP server that can relay email for your applications with support for DKIM signing and TLS encryption.