Archive completed public-site and production-provider changes into main specs, remove duplicate active changes, and add complete-foundation-parity so Phase 0 staging and remaining foundation gaps block Phase 2 cleanly. Co-authored-by: Cursor <cursoragent@cursor.com>
1.4 KiB
1.4 KiB
ADDED Requirements
Requirement: Production transactional email uses Resend
The system SHALL support Resend as the production mail transport via Laravel's native resend mailer (SPEC §9.1, §15.4). The Resend API key MUST be read from RESEND_API_KEY through config/services.php. Production deployments MUST set MAIL_MAILER=resend when transactional email is enabled.
Scenario: Resend mailer is configured
- WHEN the application boots with valid configuration
- THEN a
resendmailer MUST exist inconfig/mail.php - AND
config('services.resend.key')MUST resolve fromRESEND_API_KEY
Scenario: Local development uses safe mail default
- WHEN
APP_ENVislocalandMAIL_MAILERis unset - THEN the default mailer MUST be
log - AND no outbound email MUST be sent to external providers
Scenario: Tests do not call Resend
- WHEN the test suite runs
- THEN
MAIL_MAILERMUST bearray(or tests MUST useMail::fake) - AND no live HTTP request to Resend MUST occur during CI
Requirement: Global from address is configurable
The system SHALL read the global sender address and name from MAIL_FROM_ADDRESS and MAIL_FROM_NAME (SPEC §15.4).
Scenario: From address applied to outbound mail
- WHEN the application sends mail through the configured mailer
- THEN the message MUST use the configured from address and name