EN
Magento Updated

Overview of Magento Mail Service for Bulk and Transactional Mailings

Jane Vyshnova

Jane Vyshnova

CEO

Author

Overview of Magento Mail Service for Bulk and Transactional Mailings

Time to read: 10 minutes

Content

  1. Bulk or Transactional: Which Magento Email Goes Which Way
  2. What is an Email Template?
  3. Types of Newsletter Emails
  4. Magento Responsive Email Templates
  5. Responsive Transactional Emails for Magento 2: an Admin panel built-in editor
  6. Advantage of responsive transactional emails
  7. Other Magento 2 Plugins to Come in Handy for Your Email Newsletter
  8. How to Configure Magento 2 Email Templates without Any Magento Marketplace Extensions?
  9. Summary
Bookmark

Short answer: Magento sends two kinds of email. Transactional emails, such as order confirmations, shipment notices and password resets, are triggered by a customer's action and sent by Magento itself from templates you can edit in the admin. Bulk emails, such as newsletters, go to many subscribers at once; Magento's built-in newsletter queue sends them in batches, which is enough for simple announcements, while segmented campaigns and behaviour-based series belong in an email service connected to the store. Both depend on cron running, on the mail transport you configure (Adobe advises against Sendmail) and on a sending domain set up for Gmail and Yahoo requirements. The table below shows which email goes which way and what to check.

Establishing and managing your own online store, you need well-thought-out, flexible templates for your emails: order confirmations, special offers, notifications and so on.

Let's dive deeper into email templates in Magento (now developed by Adobe as Magento Open Source and Adobe Commerce), see how Magento handles transactional and bulk mail, and figure out how to create email templates in Magento 2.

Bulk or Transactional: Which Magento Email Goes Which Way

Use this table with your ecommerce lead and developer when you plan or audit your store's email. Each row is one kind of message, how Magento sends it and the check that catches the usual problem.

EmailTypeTriggered byHow Magento sends itCheck before go-live
Order, invoice, shipment and credit memo emailsTransactionalA sales event in the storeSales email templates; with asynchronous sending enabled, at regular intervals by cronPlace a test order in every store view; each email arrives with the right template, language and sender
New account, password reset and other customer account emailsTransactionalA customer actionCustomer email templates through the configured mail transportReset a password from the storefront; the link works and the email is not in spam
Product alerts (price change, back in stock)TransactionalA product change for a customer who asked for an alertProduct alert templates, processed by cronSubscribe to an alert, change the product, confirm the email arrives
Newsletter subscription confirmation, success and unsubscribe emailsTransactionalSubscribing or unsubscribingNewsletter templatesSubscribe and unsubscribe with a test address; both are recorded
Newsletter to all subscribersBulkYou schedule itNewsletter queue, sent in batches by cronSend to a test list first; check the Newsletter Problem report afterwards
Segmented campaigns and behaviour-based series (for example win-back or abandoned cart)BulkSegments or customer behaviourAn email service connected to Magento, not the newsletter queueConsent and unsubscribes sync both ways between Magento and the email service

Before the first live email, run this setup check:

  1. Cron is running. Adobe lists "All Commerce e-mails (including order confirmation and transactional)" and newsletters among the activities that need cron.
  2. The mail transport is SMTP, not Sendmail. Adobe's documentation says it is "highly recommended that you avoid using Sendmail for email communications".
  3. Asynchronous sending of sales emails is enabled. Adobe recommends it: sales emails are then sent at regular intervals instead of at the moment the event is triggered.
  4. Custom templates are assigned to every store view that needs its own language or branding.
  5. The sending domain is authenticated with SPF, DKIM and DMARC (Gmail and Yahoo require SPF or DKIM from all senders and all three from bulk senders; see the sender requirements below).
  6. Every template has been tested on desktop and mobile email clients.
Transactional and bulk email in Magento Transactional: a store event such as an order or a password reset selects an email template for the store view; sales emails (order, invoice, shipment, credit memo) can wait for asynchronous sending, run by cron, while other transactional emails go straight to the mail transport; the mail transport (SMTP recommended) delivers one message to one customer. Bulk: a newsletter template is added to the newsletter queue; cron sends it in batches through the same mail transport to all subscribers; transmission problems appear in the Newsletter Problem report. Segmented campaigns and behaviour-based series run in an email service connected to Magento. Transactional: one trigger, one customer Store event order, shipment, password reset Email template per store view Sales emails only async sending at intervals, by cron other emails: direct Bulk: one newsletter, many subscribers Newsletter you schedule it Newsletter template Newsletter queue batches, by cron Mail transport SMTP recommended, authenticated domain (SPF, DKIM, DMARC) → customer or subscribers' inboxes Newsletter Problem report Segmented and behaviour-based campaigns run in a connected email service, not the queue
Transactional and bulk email in Magento use the same templates, cron and mail transport, but differ in trigger and volume. Segmented marketing belongs in a connected email service.

What is an Email Template?

A customer email template is, basically, a foundation for a personalised message. It is a blank letter form that is filled with elements for a particular topic and goal: images, text, CTA buttons, links and so on.

Templates save lots of your time, making it unnecessary to edit every letter manually. In Adobe's words, "Email templates define the layout, content, and formatting of automated messages sent from your store." Still, there cannot be one or two universal templates. Magento's default templates cover customer activities, sales, product alerts, admin actions and system messages, and apart from the custom options you will need for different purposes, there are also two major types of messages.

Types of Newsletter Emails

Targeted letters - what is a transactional email?

Transactional emails are targeted at individual users and are triggered: they are only sent after a user takes a certain action, such as registering an account, confirming an order or when the order status changes. These emails are based on dedicated triggers in the store and sent through the store's mail transport, an SMTP service or an email service's API.

In Magento, each kind of sales email can be switched on or off per store view; for orders, the setting "When enabled, sends a transactional email for each order placed." You also choose the sender and the template, and you can send a copy of each order email to your team, either as a Bcc or as a separate email.

All-in-one letters - what is a bulk (marketing) email?

A bulk (or marketing) newsletter is used by a web store to promote products and offers, build client loyalty and keep the brand in view. Identical letters are usually sent to a large number of users at once.

Magento has a built-in newsletter for this. Adobe explains that "to manage the load on the server, newsletters with many subscribers are sent in a queue of multiple batches", and "any problems that occur during transmission appear on the Newsletter Problem report". The built-in newsletter sends the same message to subscribers; for segments, automation and reporting, stores connect a specialised email service.

Bulk mail also falls under mailbox providers' sender requirements. Google and Yahoo both ask all senders to authenticate with SPF or DKIM and to keep the spam rate below 0.3%. Google sets additional requirements "if you send more than 5,000 messages per day to Gmail accounts": SPF, DKIM and DMARC (the DMARC policy can be set to none), and one-click unsubscribe for "marketing messages and subscribed messages". Yahoo requires bulk senders to implement both SPF and DKIM, publish a valid DMARC policy of at least p=none that passes, support one-click unsubscribe for marketing and subscribed messages and "honor unsubscribes within 2 days". Setting up SPF, DKIM and DMARC for every domain your store sends from, transactional or bulk, covers both levels.

Magento Responsive Email Templates

Magento comes with a library of ready-made templates and an admin editor to customise them to your needs. According to Adobe's documentation, each default template "is optimized for any screen size", and the store configuration determines the logo that appears in the default header template.

That matters because people read email on many devices and clients: smartphones, tablets and desktop programs. If you change a template's HTML, test it again on the devices your customers use.

Third-party template editor extensions add drag-and-drop editing, extra designs and test sending. If you consider one, check on the vendor's page that it supports your Magento version and the email types you use, and test it on a staging copy first.

Responsive Transactional Emails for Magento 2: an Admin panel built-in editor

You do not need an extension to edit transactional emails: the editor is built into the Magento admin. The steps, according to Adobe's documentation, are:

  1. On the Admin sidebar, go to Marketing > Communications > Email Templates and click Add New Template.
  2. Under Load default template, choose the template you want to customise, for example the new order email, and click Load Template.
  3. Enter a Template Name, and change the Template Subject if needed.
  4. In Template Content, modify the HTML. Content combines HTML, CSS directives, variables and text.
  5. Enter any CSS declarations in Template Styles. Adobe notes that custom styles apply only if the header template tag is present, or if you include the styles within a style tag.
  6. Save the template, then use the Currently Used For link to open the configuration page where the template is assigned, clear Use system value, select your template and click Save Config. Refresh any invalid cache.

Headers and footers are set separately, under Content > Design > Configuration, in the Transactional Emails section of each store view.

Advantage of responsive transactional emails

Summarising the above, here is what responsive templates give your store, and how to keep that advantage:

Other Magento 2 Plugins to Come in Handy for Your Email Newsletter

Above, we already mentioned SMTP. SMTP, or Simple Mail Transfer Protocol, is the basic standard for sending email through IP-based networks. Magento lets you choose the transport in Stores > Settings > Configuration > Advanced > System > Mail Sending Settings: Sendmail or SMTP. For SMTP, you set the host and port, the authentication type (NONE, PLAIN or LOGIN), the user name and password, and the security certificate verification (SSL or TLS). Many stores point this at an SMTP or transactional email service; the provider gives you the host, port and credentials.

SMTP extensions add features around this, such as logs of sent emails inside the admin or test sending. Check that the extension supports your Magento version before installing it.

For marketing email, stores connect a specialised email service (ESP), which syncs customers, orders and products from Magento and handles segments, automations and reporting. With such a service, you can provide a personalised email experience for your existing and potential clients. Our guide to mail integrations for Magento describes email services that integrate with Magento.

How to Configure Magento 2 Email Templates without Any Magento Marketplace Extensions?

Surely, you can use the default templates that come with Magento 2.

To view the available templates, go to Marketing > Communications > Email Templates. When you add a new template, the Load default template list shows the defaults grouped by area: customer activities, sales, product alerts, admin actions, system messages and newsletters.

The most basic thing you can do here is add your logo to the email header, which comes from the store configuration. Choose an image that displays well at email width on all types of devices.

First of all, you need to do some basic mail settings in Stores > Settings > Configuration > Advanced > System > Mail Sending Settings:

Then, in Stores > Settings > Configuration > Sales > Sales Emails > General Settings, set Asynchronous sending to Enable.

Before customising a template in depth, create a new one by going to Marketing > Communications > Email Templates and clicking Add New Template. Name your template and, if needed, edit the Template Subject and Template Content fields (they contain HTML by default).

As for the Template Styles, you can add your own CSS declarations there; remember the header tag requirement mentioned above.

After that, save the template and assign it through the Currently Used For link, as described in the steps above. The exact configuration page depends on the email type, so the link is the reliable way to find it in your version.

Summary

As you can see, it is not difficult to customise email templates in Magento 2. You can use the default Magento templates and settings (as long as you know your HTML basics and can handle CSS), add extensions where you need extra editing features, and connect an email service for segmented marketing. Whatever you choose, keep cron, the mail transport and your sending domain in order: they decide whether the emails arrive at all.

If you want a distinctive transactional email design, a marketing newsletter that stands out, or help with mail settings that are not delivering, turn to professional web developers. To receive a consultation or a project estimate, do not hesitate to fill in the contact form! Let us help you design emails that work for your particular target audience. You can also read about our Magento integration services.

Lassen Sie Profis Ihre Herausforderung meistern

Unsere zertifizierten Spezialisten finden die optimale Lösung für Ihr Unternehmen.

Bitte einen gültigen Namen eingeben
Bitte geben Sie ein gültiges Unternehmen ein
Bitte geben Sie eine gültige Telefonnummer an
Bitte geben Sie eine gültige E-Mail-Adresse ein
Kurze Botschaft

    Ihre Nachricht wurde erfolgreich verschickt. Wir melden uns in Kürze! Success icon