Skip to main content
Loading...

Integrating with Web Applications

Integrating mySMTP with Web Applications

mySMTP is a powerful SMTP relay service that enhances email deliverability for web applications and e-commerce platforms. This guide will walk you through integrating mySMTP with popular platforms, including WordPress, Magento, WooCommerce, PrestaShop, Joomla, Drupal and others.

Prerequisites

Before integration, ensure you have:

  • A mySMTP account with SMTP credentials (host, username, password, and port).
  • Access to your website’s admin panel or server.

1. WordPress

Using WP Mail SMTP Plugin

  1. Install WP Mail SMTP from the WordPress Plugin Directory.
  2. Navigate to WP Mail SMTP → Settings.
  3. Under Mailer, select Other SMTP.
  4. Enter your mySMTP credentials:
    • SMTP Host: mysmtp.com
    • Encryption: TLS (or SSL if required)
    • Port: 587 (or 465 for SSL)
    • Your mySMTP Username & Password
  5. Save changes and test email delivery.

2. Magento

Configure SMTP in Magento Admin

  1. Install the MagePal SMTP extension (if needed).
  2. Navigate to Stores → Configuration → Advanced → System.
  3. Expand Mail Sending Settings and update:
    • Host: mysmtp.com
    • Port: 587
    • Authentication: Login
    • your mySMTP Username & Password
  4. Save settings and send a test email.

3. WooCommerce

  • Follow the WordPress WP Mail SMTP guide (above).
  • Ensure WooCommerce email settings point to the correct sender email.

4. PrestaShop

  1. Navigate to Advanced Parameters → Email.
  2. Select Set My Own SMTP Parameters.
  3. Enter mySMTP credentials and save.

5. Drupal

  1. Install the SMTP Authentication Support module.
  2. Configure SMTP settings with mySMTP details under Configuration → SMTP Authentication.

6. Joomla

  1. Go to System → Global Configuration → Server.
  2. Set Mailer to SMTP and enter mySMTP details.

7. OpenCart

  1. Navigate to Settings → Mail.
  2. Set Mail Engine to SMTP and enter mySMTP details.

8. Laravel (PHP Applications)

  1. Update your .env file:

MAIL_MAILER=smtp
MAIL_HOST=smtp.mysmtp.com
MAIL_PORT=587
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls

  1. Clear cache and restart the server.

9. Symfony

  1. Update your .env file:

MAILER_DSN=smtp://your_username:This email address is being protected from spambots. You need JavaScript enabled to view it.:587

  1. Test with bin/console swiftmailer:email:send.

10. Django (Python Applications)

  1. Update settings.py:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mysmtp.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'your_username'
EMAIL_HOST_PASSWORD = 'your_password'

  1. Restart the application.

11. ASP.NET Core

  1. Add SMTP settings in appsettings.json:

{
"SmtpSettings": {
"Server": "mysmtp.com",
"Port": 587,
"Username": "your_username",
"Password": "your_password",
"UseSSL": false,
"UseStartTls": true
}
}

  1. Inject SMTP settings in your mail service.

12. Ghost (Node.js)

  1. Update config.production.json:

"mail": {
     "transport": "SMTP",
     "options": {
          "service": "SMTP",
          "host": "smtp.mysmtp.com",
          "port": 587,
          "auth": {
               "user": "your_username",
                    "pass": "your_password"
               }
          }
     }

  1. Restart Ghost.

Conclusion

Integrating mySMTP ensures reliable email delivery across web platforms. If you encounter issues, check firewall settings, test with different ports (25, 587), and enable SMTP logs for debugging.

No questions yet.