diff --git a/content/v2.0/monitor-alert/send-email.md b/content/v2.0/monitor-alert/send-email.md index cc1574f80..2e4db3b56 100644 --- a/content/v2.0/monitor-alert/send-email.md +++ b/content/v2.0/monitor-alert/send-email.md @@ -193,7 +193,6 @@ Mailgun requires that a domain be specified via Mailgun. A domain is automatical ```js import "http" - // Import the Secrets package if you store your API key as a secret. // For detail on how to do this, see Step 4 above. import "influxdata/influxdb/secrets" @@ -210,7 +209,7 @@ numberOfCrits = from(bucket: "_monitoring") numberOfCrits |> map(fn: (r) => - (if r._value > 1 then {r with _value: http.post(url: "https://api.mailgun.net/v3/YOUR_DOMAIN/messages", headers: {Authorization: "Basic api: 1 then {r with _value: http.post(url: "https://api.mailgun.net/v3/YOUR_DOMAIN/messages", headers: {Authorization: "Basic api:your-private-api-key"}, data: bytes(v: "{ from='Excited User ' \ to=YOU@YOUR_DOMAIN_NAME \ to=bar@example.com \