Author: Julia Zakharova

Editor of expert articles and cases in IT

How to Integrate DebugMail Service for Testing Email as an SMTP Server

DebugMail is a fake SMTP server designed for testing outgoing traffic of web apps or websites in the development environment without deploying it to production. This simple email testing tool offers developers a way to catch and debug emails without cluttering real mailboxes, or sending emails to real users. By setting up mailcatching on DebugMail, you can test the correctness of sending triggered emails, scheduled marketing emails, or ensure the accuracy of attachments, senders’ addresses, and more.

Simple moke SMTP server for testing emails.

— How to integrate DebugMail with a code snippet
— How to integrate DebugMail with SMTP credentials

You can integrate DebugMail with your web project or app using two methods: code snippet or credentials.

How to integrate DebugMail with a code snippet

Follow these steps:

  1. Go to the Debug Mail website https://debugmail.io/ and login to your account using your Google, Github, or email credentials. After logging in, you must create a team and a project for the app or online store you wish to test.
Stages of creating a team and project for collaborative testing of outbound emails in web projects.
To test an app or online store, first login and create a team and project.
  1. Choose the technology from the list of presets. Copy the generated code and then paste it to your project.
Stages of obtaining a snippet for integrating DebugMail service into a project for testing outbound emails.
Integrating DebugMail with a code snippet.
  1. Run your email sending code and check how it was sent to DebugMail.
Fake SMTP server DebugMail. Intuitive workspace. Simple integration and management of outbound email testing.
DebugMail workspace.

How to integrate DebugMail with SMTP credentials

You can also use SMTP credentials and we assume that you’re already logged in.

  1. To find unique credentials for your project, scroll down past technology and snippets to the bottom of the page. You will see the following information:

Host: app.debugmail.io

Port: 25 or 9025

Username: unique to your project

Password: unique to your project

Stage of credential setup for integrating fake SMTP into your project for outbound email testing.
Integrating DebugMail with SMTP credentials.
  1. Paste them to your project and run the email sending code. And then check the email in DebugMail.

We also have an API for managing DebugMail, which we’ll cover in another article.

Our goal was to provide a straightforward and simple guide to getting started with DebugMail, and we hope you found it useful. Also check out our comparison of DebugMail vs. Google SMTP to see how easy it is to integrate DebugMail into your project.

DebugMail vs. Google SMTP: Which Email Testing Option is Right for You?

DebugMail vs. Google SMTP: Which Email Testing Option is Right for You?

Introduction

Email testing is an essential part of any email development process, ensuring that the email message is delivered correctly and looks as intended across different email clients and devices. Also helps to identify and fix any issues before the mail is sent to a live audience.

In this article, we will explore two methods of email testing Google SMTP and DebugMail, compare their advantages and disadvantages, provide tips on how to set up a test environment for effective mailcatching.

Introduction
Setting up a Google account to receive emails
Setting up DebugMail for mailcatching and debugging
Comparing Google SMTP and DebugMail
— Pros and cons
— Features and functionality
Conclusion
Additional resources

Setting Up a Google Account to Receive Emails

To test email delivery, you can use Google SMTP, which is one of the most popular options for email testing. Follow these step-by-step instructions to set up a Google account for receiving emails:

  1. Click on the gear icon in your Gmail account and select See all settings.
A screenshot of the Gmail interface showing the gear icon and the "See all settings" option highlighted.
Go to the Google Mail settings.
  1. Navigate to the Forwarding and POP/IMAP tab and enable IMAP access.
A screenshot of the Gmail settings page with the "Forwarding and POP/IMAP" tab selected and the option to enable IMAP access highlighted.
In the Gmail settings page, find the Forwarding and POP/IMAP tab, and check the Enable IMAP checkbox to configure email access through IMAP protocol.
  1. Click on your account icon and select Manage your Google Account.
A screenshot of the Gmail interface with the user's account icon highlighted, and a menu showing the option to "Manage your Google Account.
Click on the icon located at the top right-hand corner of the screen.
  1. Go to the Security section and scroll down to the Signing in to Google block.
A screenshot of the Google Account settings page, with the "Security" section highlighted, and the "Signing in to Google" block visible after scrolling down.
Access the Google Account settings page and navigate to the Security section.
  1. If the App passwords tab is not visible, enable two-step verification.
  2. Access the App passwords tab, enter your account password, and specify the data for which you want to generate a password for the application.
A screenshot of the Google Account settings page, with the "App passwords" tab visible. A form is shown where the user can enter their account password and specify the application for which they want to generate a password.
Configure password settings to establish a connection between the application and Google SMTP.
  1. Click Generate, and copy the generated password to paste it into the code.
A screenshot of the Google Account settings page, with the user having generated an app password. The password is displayed and a button to copy it is highlighted.
Copy the password that was generated and paste it into the code of your application.
  1. To complete the process, specify your Gmail account data, including login, password, port, and host (which are set as default values to smtp.gmail.com and 587, respectively). Then, run the script. Once the script has executed, go to the test recipient’s page to read the message that was sent.
A screenshot showing the view of an outgoing email sent from an application or online service, as displayed in Google Mail after it has been configured as an SMTP server.
The final view of an outgoing email from an application or online service.

Setting up DebugMail for Mailcatching and Debugging

  1. Go to the DebugMail website https://debugmail.io/ and log in to your account.
A screenshot of a web browser with the DebugMail website loaded.
Go to the DebugMail website.
A screenshot of the DebugMail website sign-up page, with options to sign up using Google, Github, or email credentials.
Log in to your account.
  1. Create a team and a project within that team.
Team creation step in DebugMail.
Create a team to work on projects.
Project creation step in DebugMail.
Create a project, for example, with the name of your app or online store.
  1. Click on the gear icon and go to Settings.
Connection of a fake SMTP service project to an application or online service.
Each project has its own individual settings.
  1. Select the desired code generation method.
Directory of presets for integrating a fake SMTP server into the code of an application or online store.
Choose the technology that you would like to integrate with DebugMail.
  1. Copy the generated code.
Snippets and creeds for integrating fake SMTP into an app or service.
Use the pre-made add-in to integrate with DebugMail.
  1. Paste the code into your project and run it.
  2. Go to DebugMail to check how the email was sent.
Elements of projects and emails in the Debug Mail online SMTP service.
DebugMail workspace.

Setting up everything will only take 2 minutes of your time.

Comparing Google SMTP and DebugMail 

Pros and Cons

Google SMTPDebugMail
ProsWidely used and trusted email service provider.Trusted email testing service with clear legal documentation.
High level of customization and control.Integration in 2 minutes.
Provides Gmail API.Quick project and team creation.
Reliable email delivery.Comfy and cheap plans.
Unlimited acceptance of emails per day.
ConsTime-consuming setup and configuration process.No spam rating.
Daily sending limits may affect email testing.

When choosing between Google SMTP and DebugMail, it’s important to consider factors such as the size and complexity of the project, budget, and level of customization required. Ultimately, the decision will depend on the specific needs and preferences of the developer or development team.

Features and Functionality

Google SMTP provides email logs that can be accessed through the Google Admin console or via third-party email tracking tools. These logs include information such as the sender and recipient of the email, the date and time it was sent, and the status of the message (e.g. delivered, bounced, etc.). This can be helpful for tracking email delivery and troubleshooting any issues that may arise. Additionally, Google SMTP allows users to customize their email signature, which can help to give a more professional look to their test emails.

DebugMail offers a convenient email management solution with the ability to create teams and projects for each site or application. Projects can store, sort, group and delete all captured emails, which is useful for team collaboration. DebugMail also offers an API for integrating email testing into existing workflows, making email testing more efficient for developers. Role customization is also available, allowing users to pay a monthly subscription if there are multiple team admins.

While Google SMTP may be a simpler option for individual developers, the additional features and functionality of DebugMail make it a powerful tool for teams and projects. DebugMail also eliminates the risk of accidentally sending a test email to a real subscriber before the tester has verified that the outgoing emails of the project being developed are correct.

Conclusion

Google SMTP and DebugMail offer great solutions for email testing in development. We hope this article has helped you determine which option is right for your individual needs. If you’re interested in learning more, check out the additional resources below.

Additional Resources

To report a bug or an issue please email us.

We are happy to get any feedback.