/sendgrid-email-proxy

A very simple email proxy which uses SendGrid's webhooks to redirect any incoming email to a specified email address.

Primary LanguageTypeScriptMIT LicenseMIT

sendgrid-email-proxy

A very simple email proxy which uses SendGrid's webhooks to redirect any incoming email to a specified email address.

How to use

  1. Install Deno.
  2. Clone this repo using git clone https://github.com/realmayus/sendgrid-email-proxy
  3. cd to the cloned repository
  4. If you want to, you can change the "Sent from" email address and the port the server should run on in index.ts
  5. Create a file called secrets.json in this directory with the following contents:
{
  "sendgridKey": "Your SendGrid API key",
  "destinationEmailAddress": "The email address the proxy should redirect incoming emails to"
}
  1. use deno run --allow-net --allow-read index.ts to start the proxy.