Smtp
A starter for Medusa plugins.
Compatibility
This starter is compatible with versions >= 2.5.0 of .
Notification-smtp
Support the Notification-smtp Provider - Elevate Our Medusa Community!
Dear Developers and E-commerce Enthusiasts,
Are you ready to enhance email communication for your MedusaJS store? We have an exciting opportunity that will streamline email delivery for the Medusa platform! Introducing the SMTP Provider, a community-driven project that integrates the power of SMTP email services into the MedusaJS commerce stack, ensuring reliable and efficient email communication.
Stay ahead in e-commerce with seamless email solutions! π
What's in it for You:
π Enhance Email Communication: With the SMTP Provider, you can unlock the full potential of SMTP services, ensuring reliable and secure email delivery for your customers.
π Seamless Global Outreach: Connect with customers worldwide with hassle-free email communication, supporting various email providers and configurations tailored to your needs.
π Empower Your Medusa Store: By supporting this provider, you contribute to the Medusa community, fostering innovation and improving email infrastructure across the platform.
Effortless Installation
No complexity, no hassle! Set up the SMTP Provider quickly with npm:
The SMTP Provider integrates SMTP email services into the MedusaJS commerce stack, ensuring seamless email functionality for transactional and marketing emails. π
Installation
Use the package manager npm to install Notification-smtp.
npm install @tsc_tech/medusa-plugin-smtpyarn add @tsc_tech/medusa-plugin-smtp
Additionally, install the smtp package:
npm install nodemaileryarn add nodemailer
Configuration
Step 1. Choose an SMTP Provider
You'll need an SMTP provider to send emails. Some popular options include:
Gmail (requires an App Password if using 2FA)
Step 2. Get SMTP Credentials
Once you've signed up for an SMTP provider, retrieve your SMTP credentials (hostname, port, username, password). Example (for Gmail):
SMTP_HOST: smtp.gmail.com SMTP_PORT: 587 (for TLS) or 465 (for SSL) SMTP_AUTH_USER: your-email@gmail.com SMTP_AUTH_PASS: your-app-password
For Gmail, enable Less Secure Apps or generate an App Password if using 2FA.
Step 3. Set Up Environment Variables In your .env file, define the following variables:
Step 3: Update Medusa Configuration Modify your medusa-config.ts to include the smtp provider:
Contributing
Contributions are welcome! For significant changes, please open an issue first to discuss your proposed modifications.
Kindly ensure that tests are updated as needed.
License
Disclaimer
The code has been tested in a limited number of scenarios, so unforeseen bugs may arise. Please report any issues you encounter or submit a pull request if you'd like to contribute fixes.