Вышел Модуль интеграций 2.0 для MedusaЧитать анонс
Mail Templates logo

Mail Templates

Создавайте шаблоны писем для Medusa

npm install @vymalo/medusa-mail
Категория
Создано
Версия
1.0.9
Последнее обновление
1 год назад
Ежемесячные загрузки
Загрузка данных

MedusaJS Mail Templates

📧 Powerful, Flexible Email Templating for MedusaJS

🌟 Features

  • Advanced email template generation
  • Nodemailer integration
  • SMTP and transport flexibility
  • Preview and development modes
  • Internationalization support
  • Extensive customization options

📦 Installation

Install the package using npm:

Or using yarn:

🔧 Configuration Types

🚀 Usage Example

🛠️ Key Configuration Options

Message Configuration

  • : Nodemailer message options
    • : Sender email address
    • , , : Recipient configurations
    • : Email subject

Transport Options

  • : Connection method
    • SMTP:
    • SendGrid, Mailgun, etc.
  • Supports all Nodemailer transport methods

Rendering Modes

  • : Enable/disable actual email sending
  • : Generate email preview
  • : Render text-only emails
  • : Use custom rendering function

Internationalization

  • : Enable template translations
  • Supports various internationalization libraries

🌐 Environment Considerations

  • Use different configurations per environment
  • Disable sending in development
  • Enable email previews
  • Secure sensitive transport credentials

🔒 Security Best Practices

  • Use environment variables for credentials
  • Limit preview and sending in production
  • Implement proper error handling
  • Validate email configurations

🤝 Contributing

Contributions welcome!

  • Improve template rendering
  • Add new transport methods
  • Enhance internationalization support

📄 License

Check the license