Mailer Generator
Synopsis
azu generate mailer <name> [methods...] [options]Description
Features
Usage
Basic Usage
Custom Email Methods
Common Mailer Types
User Notifications
Order/Transaction Emails
Newsletter/Marketing
System Notifications
Arguments
Argument
Type
Description
Required
Options
Option
Description
Default
Generated Files
Directory Structure
Mailer Class
Base Mailer
Email Templates
HTML Template (welcome.html.ecr)
welcome.html.ecr)Text Template (welcome.text.ecr)
welcome.text.ecr)Async Job (with --async)
Email Adapter Configuration
Development Adapter
SMTP Adapter
SendGrid Adapter
Custom Adapter
Usage Examples
Send Welcome Email
Send Password Reset
Send Order Confirmation
Send with Attachments
Advanced Features
Multiple Recipients
CC and BCC
Custom Headers
Reply-To
Email Priorities
Template Helpers
Common Helpers
Testing
Unit Tests
Integration Tests
Best Practices
1. Use Plain Text + HTML
2. Personalize Emails
3. Clear Call-to-Action
4. Responsive Design
5. Unsubscribe Links
6. Test in Multiple Clients
7. Monitor Delivery
Environment Configuration
Dependencies
Troubleshooting
Emails Not Sending
Templates Not Found
Async Delivery Not Working
Related Documentation
See Also
Last updated