What problem does it solve?
Setting up email delivery in a Webiny project requires correctly wiring SMTP credentials into the build-time configuration, and mistakes like hard-coded passwords or missing environment variables cause confusing build errors or silent delivery failures.
Core Features & Use Cases
- Declarative SMTP Configuration: Add the
<Api.Mailer.Smtp /> component to webiny.config.tsx with host, port, user, password, from, and optional replyTo props.
- Secure Credential Handling: Enforces passing the SMTP password through an environment variable instead of hard-coding secrets.
- Validation Guidance: Explains RFC 5322 validation of
from and replyTo addresses and common build-time errors.
- Use Case: Connect a Webiny project to SendGrid by setting
host to smtp.sendgrid.net, user to apikey, and password to process.env.SENDGRID_API_KEY, then rebuild the API.
Quick Start
Ask the AI to configure SMTP email delivery in your Webiny project using your SMTP host, port, and credentials stored in an environment variable.