A very simple email proxy which uses SendGrid's webhooks to redirect any incoming email to a specified email address.
- Install Deno.
- Clone this repo using
git clone https://github.com/realmayus/sendgrid-email-proxy
cd
to the cloned repository- If you want to, you can change the "Sent from" email address and the port the server should run on in index.ts
- 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"
}
- use
deno run --allow-net --allow-read index.ts
to start the proxy.