Email Service
Every cloud function has access to a fully managed email service. No setup required — just use the email global and Cocobase handles the rest.Provider Priority
Cocobase automatically selects the best available email provider for your project:- Project Integration (CocoMailer / Resend / EmailJS)
- SMTP Configuration (your own SMTP server)
- Cocobase Fallback (managed Resend via noreply@cocobase.buzz)
Two Ways to Send Email
1. req.send_mail() — Quick Send
Best for simple one-off emails:| Parameter | Type | Required | Description |
|---|---|---|---|
| to | str or list | ✅ | Recipient(s) |
| subject | str | ✅ | Email subject |
| body | str | ❌ | HTML body |
| template_id | str | ❌ | Template name to use |
| context | dict | ❌ | Template variables |
