Spaces:
Sleeping
Sleeping
Commit History
-
Fix domain: curium.co.uk → curiumsolutions.com
Piers Lyon +1: Claude Opus 4.7 (1M context)The actual Curium tenant uses curiumsolutions.com — the prior references to curium.co.uk were my mistaken assumption from the public website branding. Updated: - config.yaml: company.website + an old example email recipient - mailer.py: docstring example - scripts/setup_gh_secrets.sh: MS_GRAPH_FROM_EMAIL default Caused a spurious 'mailbox not found' error when running New-ApplicationAccessPolicy against the wrong domain. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>27f7662 -
mailer: add Microsoft Graph API transport for M365 service accounts
Piers Lyon +1: Claude Opus 4.7 (1M context)User is M365 admin and prefers to keep email sending inside the tenant (data security) rather than using a third-party transactional service. SMTP AUTH is being deprecated by Microsoft and requires a paid mailbox license; Graph API with an Azure AD App Registration is the Microsoft- recommended path: - No SMTP AUTH, no basic auth deprecation risk - Works with a free shared mailbox (no license required) - Application Access Policy can scope the app to one mailbox only mailer.py now auto-picks transport: - 'graph' when MS_GRAPH_TENANT_ID + MS_GRAPH_CLIENT_ID + MS_GRAPH_CLIENT_SECRET + MS_GRAPH_FROM_EMAIL are all set - 'smtp' fallback when SMTP_USERNAME + SMTP_PASSWORD are set - 'none' when neither — send() returns a clear error Graph path uses msal client credentials flow → bearer token → POST /users/{mailbox}/sendMail. Common Graph errors (403 missing Mail.Send / Application Access Policy, 404 mailbox not found, 401 token issues) are surfaced to the caller in the messa…48cb4ed -
mailer: separate SMTP_FROM_EMAIL from SMTP_USERNAME
Piers Lyon +1: Claude Opus 4.7 (1M context)Previously the From-header address came from SMTP_USERNAME, which forced the auth user to also be the visible sender. That breaks for transactional relays (e.g. Resend) where SMTP_USERNAME='resend' but the team wants emails to come from intelligence@curium.co.uk. New SMTP_FROM_EMAIL env var separates the two; falls back to SMTP_USERNAME for the M365 / Gmail case where they're identical. Workflow + setup_gh_secrets.sh updated to handle the new variable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>37eb301 -
Add scripts/setup_gh_secrets.sh — interactive GH Actions secret setup
Piers Lyon +1: Claude Opus 4.7 (1M context)Helper for populating the 14 GitHub Actions secrets the weekly workflow needs. Run locally in Terminal — values are piped to gh secret set via stdin (never on argv), sensitive prompts use read -s (no terminal echo). Prefills defaults from local .env where possible so re-runs are idempotent. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>e09465e