Repository navigation
Releases
Releases · go-fork/mailer
v0.1.0: Email Management Package
🚀 Initial Release: Email Management Package
The email management package provides comprehensive email sending capabilities for Go applications.
✨ Core Features
- Email Composition: Fluent API for building HTML and plain text emails
- Template System: Support for
text/templateandhtml/template - File Attachments: Send files and embed images with proper MIME handling
- Multiple Recipients: Support for To, CC, BCC recipients
- Queue Integration: Async email sending via
go.fork.vn/queue - SMTP Support: Works with Gmail, Outlook, SendGrid, Mailgun, and custom SMTP
- Email Validation: Built-in email address validation and sanitization
- Error Handling: Comprehensive error management and retry mechanisms
📧 Email Management
- SMTP Providers: Flexible configuration for multiple providers
- Connection Pooling: Efficient SMTP connection management
- Priority Handling: Email priority levels for queue processing
- Batch Sending: Efficient bulk email operations
- Template Caching: Performance optimized template management
- Delivery Tracking: Basic email delivery status tracking
- Content Security: HTML sanitization and content validation
✨ Message Builder
- Fluent API: Easy email composition with method chaining
- Custom Headers: Support for email metadata and custom headers
- Multipart Support: Text + HTML email alternatives
- Attachment Validation: File size limits and type validation
- Embedded Images: Content-ID references for inline images
- Priority Levels: High, normal, and low priority emails
🔗 Seamless Integration
- Dependency Injection: Works with
go.fork.vn/di - Configuration: Managed via
go.fork.vn/config - Queue System: Powered by
go.fork.vn/queue - Logging: Comprehensive logging via
go.fork.vn/log
📚 Developer Experience
- Testing Support: Mock implementations for unit testing
- Error Types: Comprehensive error handling and recovery
- Documentation: Extensive docs and usage examples
- Template Functions: Custom formatters and template helpers
- Debug Mode: Connection diagnostics and troubleshooting
- Best Practices: Guidelines and common patterns
🎯 Use Cases
Perfect for:
- Email notifications in web applications
- User registration and authentication emails
- Marketing campaigns and newsletters
- System alerts and monitoring notifications
- Transactional emails (receipts, confirmations)
📦 Installation
go get go.fork.vn/mailer@v0.1.0🔗 Links
- Homepage: https://go.fork.vn/mailer
- Documentation: See
docs/folder - Examples: Check
docs/usage.md
Module Path: go.fork.vn/mailer
Repository: github.com/go-fork/mailer