# Newsletter & price-drop alerts — DroneShopCanada

Status: **v1 placeholder.** The home and deals pages have a signup form that
posts to `/subscribe` (Cloudflare Pages Function at
`functions/subscribe.js`). The function is a clearly-marked stub until Jay
provides a Resend API key. No email is stored anywhere until then.

## What subscribers will get

- **Weekly deals digest** — one short email a week: the verified price
  drops worth knowing about (only products at or below their verified
  90-day low), plus the week's best guide.
- **Price-drop alerts** — an alert when a product a subscriber follows
  hits its verified 90-day low. (Follow-a-product is a later step; v1 is
  the weekly digest only.)

## Resend setup (Jay's step)

1. Create a Resend account at resend.com and create an API key.
   Do **not** paste the key into chat or into any file — put it in
   Cloudflare Pages only: Project → Settings → Environment variables.
2. In Cloudflare Pages, set:
   - `RESEND_API_KEY` = the Resend API key
   - `RESEND_AUDIENCE_ID` = the Resend audience / list id for DroneShopCanada
   - `RESEND_FROM` = `DroneShopCanada <news@droneshopcanada.com>`
     (verify this sender domain in Resend first, or use Resend's
     onboarding sender while testing.)
3. Finish the stub in `functions/subscribe.js`: call
   `POST https://api.resend.com/audiences/{id}/contacts` with the key,
   then send the double opt-in confirmation email.
4. Deploy and test with your own email before promoting the form.

## CASL (Canada) — explicit consent is required

Canada's anti-spam law (CASL) applies because this is a Canadian site
sending commercial email to Canadians:

- The form has an **unchecked-by-default checkbox**: "Yes, send me the
  weekly DroneShopCanada deals email. I can unsubscribe anytime."
  The form must not submit without it.
- **Double opt-in**: nobody is added to the sending list until they click
  the confirmation link in the Resend confirmation email.
- Every email must include: who it's from, why they're getting it, and a
  working unsubscribe link.
- Keep the consent record (email + date + source page). Resend stores
  this when contacts are added with the confirmation flow.
- Never buy, rent or scrape email lists. Never add Amazon customers —
  we don't have their emails and must not ask for them.

## Content rules for the emails

- Only verified prices, with the date checked. Same rule as the site:
  no invented deals.
- Every email carries: "As an Amazon Associate I earn from qualifying
  purchases." and a link to the disclosure page.
- French: subscribers choose EN or FR at signup (the `lang` field).
  The weekly digest is sent in the subscriber's language.
