Email and notification delivery
Configure, monitor and protect OCL transactional email and newsletter delivery.
Sender identity
Use a domain sender controlled by the organisation and authenticated with SPF, DKIM and a recommended DMARC policy. Separate transactional messages from marketing where practical.
Message types
Order receipts and security alerts differ from newsletters and promotions. Use the correct message type and do not add recipients to marketing lists without valid permission or another lawful basis.
Newsletter confirmation
A double opt-in flow sends a confirmation link before activating a subscription. Tokens should be random and unusable after confirmation. Honour unsubscribe requests promptly.
Delivery failures
A successful API response means the provider accepted the request, not necessarily that the message reached an inbox. Log provider message IDs and handle bounces and complaints.
Protect secrets
Store email API keys in server-side environment variables. Never put them in browser code, URLs, logs or GitHub. Restrict permissions and rotate after suspected exposure.
Testing
Test confirmation, failure, unsubscribe and delivery-status paths using controlled addresses. Monitor bounce and complaint rates and avoid putting sensitive medical details in subject lines.