In our previous post, we reviewed Sendgrid, Mandrill, and Mailgun – the most popular email sending services. “Test your emails before actually sending them”: each of them repeats this mantra, as does anyone who deals with email development. But do these services offer enough options for quality email testing? Let’s have a closer look at the checkpoints and see if there is a need for a special testing service.
Sendgrid offers sandbox mode and sink email addresses for email developers.
- Test the API integration in the sandbox mode. In Sendgrid, it’s a mail_settings parameter, which helps validate email sending requests. Sandbox mode allows checking the parameters of your JSON payload. If any errors were found, it returns their detailed description. You can find more information and examples in Sendgrid documentation. It doesn’t affect any of the real sending parameters.
- Check the email sending speed. This option can be useful for preparing large bulk email campaigns. Sendgrid has a “black hole” domain @sink.sendgrid.net. It will accept all the messages and immediately remove them. If you have a dedicated IP address, this type of test won’t affect its warm up. However, all emails sent to this domain will be counted as billable.
The testing mode in Mandrill offers a more extensive list of features: test API, test stats, and webhooks testing.
- With the test API key, you will be able to verify your integration and explore its capabilities. As no actual email sending occurs, it affects neither your monthly limits nor your account reputation.
- In Mandrill’s test mode, you have access to your test stats. Also, you can view and check email subject, sender and receiver email address as well as the message content.
- Another interesting feature is webhooks testing. Mandrill provides you with the list of specific email addresses. You can use them to send a message for testing such events as bounces, rejects, and spam complaints.
Read more about these options in the Mandrill knowledge base.
Mailgun features a very simple test mode and an email verification tool.
- To launch the test mode, you should simply set the o:testmode parameter to true. It will help to test your integration as well. Note that Mailgun charges you for the messages sent in this mode.
- Email verification tool is a specific feature in Mailgun. It is useful for bulk email campaigns. The tool will check all email addresses in your list to identify invalid ones. It helps to decrease hard bounce rate, which has a negative influence on your sending reputation. Note that email verification is a separate limit, not included in the email sending volume.
Universal email testing checklist for developers
Each of the mentioned email services recommends running a series of tests before sending either transactional or bulk emails. We’ve created a universal email testing checklist, which is valid for any type of email, framework, or tools used.
1. Testing the email sending capability. It is actually where you check if your code works.
Check if your script is able to send messages in general. As a rule of a thumb, separate production (real) email sending from staging or sandbox testing. You don’t want your tests to reach your customers or affect your domain reputation score.
- Make sure that integrations with the third-party services are valid.
- Verify that your integration with the chosen emails service works perfectly.
- If you are working with bulk emails, it’s always a good idea to validate your email list. A high volume of bounces, rejections, or even spam complaints will have a negative impact on your reputation as a sender.
2. Content testing. Regardless of the method you use to compose your message, there is a chance that your input will differ from the output – the message your user will see in the end.
- Check the text and its formatting. For most cases, you will use HTML to build your template, add images and/or attachments. If you have such an option, always use both text and HTML. This way, your recipient will be able to read the text and understand the message if the HTML is not rendered for some reason.
- Check dynamic content. Be careful and test it thoroughly. Dynamic content may cover user names, some data from your app like stats or reports, etc. It is usually sent to multiple users so it is a common area for mistakes. You need to run many test cases to make sure that the dynamic data is applied and displayed correctly.
If you use localization, test it as well. All these points lead to high-volume testing and require a secure and efficient tool.
- Make sure the links are valid.
- If your message contains images, test if they are displayed in most email clients. There is still no unified images rendering standard. We have observed that the largest online stores and cloud services host images on their servers and then link to them.
- Perform responsive design testing. Now people use their smartphones even more than laptops. Make sure your message looks good and clear on different screen sizes. There are numerous free HTML templates available for downloading and customizing. So it might be a good idea of using them instead of coding your own.
- Stay aware of the email size. If your recipient’s internet connection is slow, the large message might be pretty irritating.
3. Spam testing.
- Check the spam score of your message to make sure it won’t be blocked by spam filters. Even user-triggered messages might land in the spam folder. It can be caused by the email content itself. Missing information in headers, inconsistency in HTML and text parts, too many images with less text, etc. usually lead to troubles.
- Check your domain and IP reputation, even if you are using those provided by the email service.
In addition, you can share the testing results with your team members or even forward your message to your inbox for preview.
Tools and options for email testing
It would be perfect to have an all-in-one tool for email development, testing, and sending. Yet, each service has its particular focus, and the combination of tools proves to work better. Here is what you can do to perform content and spam checks.
Probably, the first thing which comes to mind is creating several testing inboxes for some most popular email clients like Gmail, AppleMail, Outlook, or Thunderbird. It will let you instantly check the delivery speed, see in which folder your message is landed as well as review the content and how it is rendered. Also, you can open the email from your smartphone and/or tablet.
In general, setting up test accounts in several webmail services and/or email clients can bring you good results. But it will work best if you only occasionally need to test new templates. Otherwise, you will be overwhelmed with maintaining all those mailboxes and cleaning test messages. In addition, this is production testing, so it will affect your monthly credits and sending reputation. All these factors don’t come in handy when you need to test bulk message sending with dynamic content and localization.
There are a bunch of tools that can offer you a dedicated inbox for testing along with options for content preview. They eliminate the need for handling various testing inboxes but still work in the production environment.
Pre-production email testing with Mailtrap
It’s undoubtedly a best practice to separate development and production. For testing the email sending functionality it’s a must.
The main purpose of pre-production email testing is to eliminate the risk of spamming real customer inboxes with testing messages. The staging environment should emulate production as closely as possible. For this purpose, it often contains an email database of real recipients. For example, recently the US embassy in Australia sent out a fake meeting invitation featuring a pyjama-wearing cat.
Yes, we are really serious about email testing. With all the above in mind, we created Mailtrap. It is a fake SMTP server, which distributes your email experiments to the virtual inboxes. It can help you to perform:
- Testing of the email sending capability. You just replace SMTP configuration with Mailtrap credentials and instantly get all your messages in its virtual inboxes.
- Content testing. Mailtrap demonstrates how the HTML will be rendered in a web browser and shows if any issues might occur in specific email clients. Also, you can separately check the HTML and text parts, view how the message will be displayed on different devices, and check attachments.
- Spam testing. Mailtrap performs spam check and provides recommendations on how to decrease spam score. Also, it scans commonly used blacklists to check the used IP and domain.
Email testing outcomes
The email sending providers offer quite limited testing capabilities. What is more important, they hardly allow users to separate email sending from development and production environments. Instead, some of them feature third-party apps, which can help you with testing.
Your testing workflows may vary depending on the current tasks but all of the three main steps need to be included:
- sending functionality
- spam checks.
Whichever tool you use, pre-production testing will help you avoid many common email mistakes. Create a free Mailtrap account in three clicks and enjoy peace of mind when preparing your email campaigns.