Integrate Mailcatch

How to integrate Mailcatch into your application in 5 minutes.


Configure your testing environment in 5 minutes. Each account comes with an individual testing environment. Integrate it with your app in just a few clicks.

Copy the email sending configuration and add it directly to the proper file of your project.

Ruby

Ruby on Rails

In config/environments/*.rb specify ActionMailer defaults for your development or staging servers:

config/environments/*.rb
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :user_name => '***********',
  :password => '***********',
  :address => 'sandbox-smtp.mailcatch.app',
  :host => 'sandbox-smtp.mailcatch.app',
  :port => '2525',
  :authentication => :cram_md5
}

Ruby (net/smtp)

Sending email using net/smtp from Ruby stdlib:

require 'net/smtp'
 
message = <<-END.split("\n").map!(&:strip).join("\n")
From: Private Person <from@example.com>
To: A Test User <to@example.com>
Subject: Hello world!
 
This is a test e-mail message.
END
 
Net::SMTP.start('sandbox-smtp.mailcatch.app',
              2525,
              'sandbox-smtp.mailcatch.app',
              '***********', '***********', :cram_md5) do |smtp|
smtp.send_message message, 'from@example.com',
                          'to@example.com'
end

PHP

Symfony

Symfony 5.x

Symfony uses Symfony Mailer to send emails. You can find more information on how to send email on Symfony's website.

To get started you need to modify .env file in your project directory and set MAILER_DSN value:

.env
MAILER_DSN=smtp://*************:*************@sandbox-smtp.mailcatch.app:2525

Laravel

Laravel 9+

Laravel provides a clean, simple API over the popular Symfony Mailer library.

With the default Laravel setup you can configure your mailing configuration by setting these values in the .env file in the root directory of your project.

.env
MAIL_MAILER=smtp
MAIL_HOST=sandbox-smtp.mailcatch.app
MAIL_PORT=2525
MAIL_USERNAME=*************
MAIL_PASSWORD=*************

Laravel 7.x and 8.x

Laravel provides a clean, simple API over the popular Swift Mailer library.

With the default Laravel setup you can configure your mailing configuration by setting these values in the .env file in the root directory of your project.

.env
MAIL_MAILER=smtp
MAIL_HOST=sandbox-smtp.mailcatch.app
MAIL_PORT=2525
MAIL_USERNAME=*************
MAIL_PASSWORD=*************
MAIL_ENCRYPTION=tls

Node.js

Nodemailer

Nodemailer is an easy to use module to send e-mails with Node.js:

const transport = nodemailer.createTransport({
  host: "sandbox-smtp.mailcatch.app",
  port: 2525,
  auth: {
    user: "*************",
    pass: "*************"
  }
});

Python

Django

First start by adding the following to settings.py:

settings.py
EMAIL_HOST = 'sandbox-smtp.mailcatch.app'
EMAIL_HOST_USER = '*************'
EMAIL_HOST_PASSWORD = '*************'
EMAIL_PORT = '2525'

You need help?

Do you want to ask a question about integration? Contact us! 👋