- Import this repo (or your fork) into flows.network: https://flows.network/flow/new
- Click on "Advanced" and configure the following settings.
Configuration | Value |
---|---|
SENDGRID_AUTH_TOKEN | The Sendgrid API key |
SENDGRID_FROM | The validated FROM email address registered by this Sendgrid account |
RUST_LOG | debug |
PASS_CODE | The pass code required to auth the caller |
Modify the example.json
as follows.
- add the pass code in the
code
field - update the
to
field for your email address
Replace the URL in the curl
command to the webhook in your deployed flow function.
curl -X POST --data-binary "@example.json" https://code.flows.network/webhook/ruvTvWEtUoK0WyZq3w5y/send_email