The post Email Academy: Plan, send, and succeed this BFCM and holiday season appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>In our recent Mailjet Email Academy webinar, Plan, send, and succeed this BFCM and holiday season, in-house experts Natalie Lynch (Principal Product Manager) and Julia Murljacic (Senior Email Marketing Manager) walked through the exact steps you need to make sure your campaigns don’t just sail out into the ether – they land, get read, and drive results.
Here’s a full breakdown of the key takeaways and step-by-step process outlined in the webinar.
TL; DR
If you’d like to watch a full replay of the webinar, simply scroll down to the bottom of article.
So, when should we start thinking about our BFCM campaigns? Well, some interesting insights reported in our BFCM email marketing: What consumers want in 2025 indicate that over 50% of consumers want to hear from brands at least one month before Black Friday. If you’re waiting until Thanksgiving week, you’re already too late.
And it’s not just about timing. We also saw that email remains the preferred channel for Black Friday and Cyber Monday promotions, with 56.5% of respondents selecting it over the likes of WhatsApp, websites, and social media ads. Planning early ensures your campaigns reach customers where they actually want to hear from you.
You can see some of the data below:
Before you start any kind of campaign planning, you need to define your goals. What are they? What does success look like for you? Here are some tips that Julia highlighted in the webinar:
OK, so you’ve got an idea of what you want to achieve – now it’s time to think about everything needed to make that happen. Firstly, you’re going to want to lock in your audience and segments. Who does this campaign benefit, and within that group, do you need to segment down further? Then you can start getting more tactical.
Julia highlighted some further areas you might want to consider
Emails that fail to reach your customers and prospects are missed opportunities to connect and engage. That’s why deliverability is often referred to as that “invisible layer” of campaign success. If you skip this, even the best campaigns will fall on deaf ears. So, to combat that, Natalie suggests that you:
With inboxes more crowded than Anfield on derby day, you can’t afford to make mistakes. This means how you roll out your sends – who you target, how you test, and how quickly you scale – can make or break the performance of your campaigns.
So, how do you ensure success?
Warming up your list before BFCM helps inbox providers see consistent, positive engagement, so your emails actually land in the inbox instead of spam. If you blast your entire list at once, you risk high bounces, complaints, and a damaged sender reputation right when you need deliverability most.
“I would suggest that all of September could be considered the “warm-up phase” and perhaps the first two weeks of October, too. So, you’ve got a good two weeks to really build this up.”
Generic emails blend into inbox clutter. Segmenting and personalizing your campaign ensures subscribers get offers that feel relevant, which boosts opens, clicks, and conversions. Sending one-size-fits-all blasts, on the other hand, leads to lower engagement and a higher chance of being ignored or marked as spam. Some options you have are to:
This isn’t just theory – our research shows that email campaigns that feel anticipated, personal, and relevant perform best. Consumers are more likely to engage when emails look like they were created for them, not for “just another name on a list.”
Now, before hitting that send button, it’s important to test and see how your BFCM emails render. This ensures you catch any links, images, and layout issues across devices and inboxes, protecting you from embarrassing mistakes. It also saves revenue and credibility that could be lost if customers see broken or unprofessional emails.
NOW you are able to hit send…
But remember, timing is everything. You don’t want to send your campaign at 9:00 AM Eastern if you’ve segmented your audience by region and this group live in California. Also, make sure you’re using email automation to help schedule your campaigns. Unless you’re the type of sender that needs their finger on the trigger, this can help save a bunch of time and manual effort.
Don’t set and forget! Hitting send does not mark the finish line – it’s the start of a feedback loop. Success around BFCM isn’t about a single campaign but about learning and improving continuously.
Beyond checking that the campaign was sent correctly, what metrics should you be tracking, and why? Here are some of the most common to keep top of mind:
Remember, you’re not just track for the sake of numbers – insights matter. Inboxes are crowded, with consumers receiving dozens of promotional emails a day. Measuring what cuts through will help you refine your future sends.
Wait at least 48 hours after the campaign has been sent to start gathering performance data. This gives enough time to all subscribers to access and engage with your campaign.
So, what’s next? While you might be ready to hang your hat up and pat your back on a job well done – the real goal here is long-term retention. How can we keep these new subscribers and buyers engaged beyond the holiday season campaign? Natalie ran through a few options for you to consider:
The holiday season is crowded, but the senders who succeed are the ones who prepare early, send smart, and measure carefully. By strengthening your deliverability, segmenting audiences, and continuously refining your approach, you’ll be set up not only for BFCM but for long-term engagement.
Did you miss the live session? Then catch the full recap below:
The post Email Academy: Plan, send, and succeed this BFCM and holiday season appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post What is the Gmail automated unsubscribe feature? appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>One of those email actors leading the way when it comes to change is Gmail, which is constantly incorporating features and automations to take the inbox experience to a new level. Of course, with an estimated 1.8 billion Gmail users in 2023, understanding the inbox’s features is a must for email marketers.
In this post, we’ll talk about the Gmail automated unsubscribe feature, what it means to senders, and why this is going to be so important to you come February 2024.
A while back, we talked to you about how Gmail was already adding some then-new sophistication to this header option that allows users to easily cancel their subscription to marketing emailing lists.
While the ability to unsubscribe from a contact list on Gmail has been available for some time, it had always been up to the users to determine which ones they wanted to be removed from.
Currently, Google has fully leaned into that sophistication by automating that process and actively asking the users whether they’d like to unsubscribe from certain promotional emails they haven’t opened in the last 30 days or more.
The unsubscribe suggestions are based on how many emails users receive and open from a specific sender and it means that, with just one click on the Unsubscribe button, the newsletter subscriptions will be terminated, making it even easier for recipients to stop receiving all of those unwanted emails.
As a marketer, it’s worth understanding the different unsubscribe options available to recipients using Gmail.
Let ’s go through some of them quickly.
The first way recipients can unsubscribe from emails is by clicking on the unsubscribe link that needs to be included in all email marketing campaigns.
Of course, as you’ll be following email marketing best practices as a sender, you’ll include an easy-to-find unsubscribe link at the bottom of your newsletter template, making it simpler for unengaged recipients to say goodbye.
This is good practice for protecting your deliverability and it also ensures you’re completely compliant with anti-spam legislation (GDPR, CAN-SPAM, CASL, etc.). And in 2024, it will be a non-negotiable for bulk email senders targeting Gmail and Yahoo users.
Here’s an example from our newsletter below:
If you’re a Gmail user yourself, you’ve probably noticed that some emails have an Unsubscribe button at the top of the email, next to the sender’s email address.
You can clearly see it highlighted in the example below.
Sometimes, this unsubscribe link is also accessible by clicking the sender card to get more details.
If you’re a frequent Mailjet reader, you’ll know that adding an unsubscribe link is the best way to protect your sender reputation and avoid users from sending your email to spam.
That’s why many senders choose to incorporate a list-unsubscribe header to their emails, which makes it easier for webmail clients like Gmail to find unsubscribe settings and display them at the top of the email. If you’re sending emails from Mailjet, the list-unsubscribe header is added to your campaigns by default as a way to protect your deliverability.
On mobile apps, this unsubscribe button can be found by entering the email and clicking on the options icon in the top right-hand corner of their screen – shown as a three consecutive dotted symbol.
This will force a drop-down menu (such as the example below) with the option available to unsubscribe.
A block isn’t the same as an unsubscribe, but sometimes recipients will default to this if they can’t find an easy way to cancel their email subscription.
Gmail’s block option is easy to find both on desktop and mobile by accessing the message options via the three dots on the right-hand side.
Marketers should beware of this block option, though. When a recipient chooses to block an email address or sender, Gmail will directly reroute this mail to the spam folder. As a sender, you’ll never know you’ve been given the silent treatment – you’ll just see the impact in your email deliverability.
An unsubscribe, on the other hand, lets us know that they no longer want to receive a certain type of content (newsletter, new blog postings, etc.,) with the onus then being to remove recipients from said list. That’s why at Sinch Mailjet we always recommend giving recipients an easy way out.
The final option for recipients is Gmail’s automated unsubscribe feature, of course.
Just as we previously explained in this post, this automated feature flags brands the user hasn’t interacted with in a period of time and offers recipients a fast way to unsubscribe from them.
While the previous options rely on a user actively choosing to opt out of your email program, Gmail’s automated unsubscribe recommendations create a new dilemma for marketers: What can you do if Gmail is telling your contacts to unsubscribe? And what will this mean for your email program?
Quite frankly, it means that your recipients have an easier way to cancel their email subscription. So, if your newsletters are boring or irrelevant, and the reader has not opened them in a while, they’ll be prompted to unsubscribe.
Don’t panic, though. The Gmail automated unsubscribe link doesn’t have to be seen as an enemy. They could already do this with tools like unroll.me, couldn’t they? In fact, it can be seen as a way to help you clean your contact lists, which in turn improves your deliverability rate.
On top of that, if you apply email list cleaning best practices, like regularly sunsetting inactive contacts and running requalification campaigns to re-obtain consent from your newsletter subscribers, you have an up-to-date database of contacts that are interested in receiving your communications and your content. And we’re pretty sure you did, didn’t you?
All in all, what’s important to remember is that this is yet another way to keep your email list clean. At Sinch Mailjet, we always recommend that you remove inactive contacts every three to six months to ensure your open and click-through rates remain at a healthy level, to ensure the best deliverability.
The bottom line is, if you continue to strategically plan and implement your newsletter campaigns, you don’t have to worry about the unsubscribe feature.
Send me the Mailjet newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.
You may have heard that Google and Yahoo plan to make some serious changes when it comes to securing subscribers’ inboxes.
Well, you heard right – as of February 2024 Google announced it’ll be requiring senders to abide by a set of industry best practices to both improve email authentication and deliverability.
These new requirements will affect bulk senders – those sending over 5000+ to Gmail addresses in one day – with one of them being the mandatory inclusion of a one-click unsubscribe option for readers.
Now, seeing as most email senders will be attempting to reach Gmail and Yahoo inboxes, this likely affects you. So, what can you do to ensure you comply with these new mandates?
What you’ll need |
How to get there |
---|---|
Same for Gmail and Yahoo: A single-click pathway for users to easily unsubscribe from your messages from within the mailbox provider’s UI using list-unsubscribe headers, and internal support to honor unsubscribe requests and remove addresses from relevant email lists within 2 days. |
Senders will need to put list-unsubscribe post headers into the header of their email as specified by RFC 8058. |
At Sinch Mailjet, we think the strongest email campaign is the one your contacts really want to receive. The best solution to avoid contacts unsubscribing is to create targeted and relevant emails, and to only send them to those that actually interact with your communications.
To help you maintain an engaged subscription base, here are some top tips.
Don’t send the same email to all your contacts. Use segmentation to send content that is tailored to your contacts based on different data, such as behavior, location, age, and gender. Combine it with personalization to make it even more human. The more relevant your email is, the more engagement it will generate among your subscribers.
Every three or six months, identify subscribers that haven’t interacted with your emails and send them a special campaign in which you remind them of the value they offer, and in which you ask them to confirm their subscription or take an action using their account. You can include a survey to understand what content they’d like to receive, or highlight what they have missed in those past months. Because of these reminders and attention, they’re less likely to take the unsubscribe option and more likely to stay with you.
A great example of a reactivation campaign comes from the home decor company Framebridge. In this email, they ask the recipient to confirm that they want to stay on Framebridge’s mailing list.
The email is short, to the point, and gets its message across. Additionally, the email uses color to draw attention to its call-to-action, which takes the form of a large, colorful button. It’s very easy for any reader to understand how to take action and keep themselves on the mailing list. This email deserves a frame, right?
Okay, we tried.
No, this doesn’t mean inactive users are jetted off on holiday to the Andalusian coast, cocktail in hand, to enjoy one of Europe’s finest sunsets…
A sunset policy is a common email segmentation strategy that identifies and discontinues sending emails to disengaged contacts or subscribers who don’t open your emails.
However, there’s big difference between cleaning your list and sunsetting. While you often only conduct list cleaning every few months, an automated sunset policy allows you to automatically identify disengage contacts and promptly exclude them from your email sends, effectively mitigating the negative impact they could have on your email deliverability.
If you don’t want to remove your zombie contacts from your list forever, you can add them to your Exclusion List. This way, contacts will stay in your database, but won’t receive your emails.
You can find your Exclusion List inside the Mailjet app. To do so, you’ll just need to click the Exclusion List button under the Conctacts drop-down in the top menu.
The Gmail automated unsubscribe feature might feel spooky at first but, by following the above tips and continuing to use email best practices, you can ensure that you’re keeping your email program as healthy as possible. That way, as Gmail and other services continue to refine their features, your mailing list and customer relationships will stay strong.
Send me the Mailjet newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.
The post What is the Gmail automated unsubscribe feature? appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post Noreply email address: Best practices for your email strategy appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>Noreply addresses are the brick wall of digital marketing – no matter how much recipients try to get their message through, there’s just no way to contact the sender.
But what role does this type of address play in an email strategy? In this post, our friend Chris Arrendale, CEO and founder of Inbox Rev, explains what a noreply address is and why sending your marketing emails using a reply-to address is always the best idea.
A noreply email is an email address that is not monitored and blocks customers from replying. You’ve likely seen this type of sender address before – most of the time it looks like this: noreply@domain.com.
There is a misconception that sending from a noreply email address is the best way to go to avoid being flooded with email replies. Many businesses use this type of email address for receipts or account creation and shipping confirmations. However, it can confuse and frustrate customers if their replies go unanswered or worse – bounce.
Still unsure of what a noreply email looks like in your inbox? We’ll highlight a few of the most common examples you’ll likely receive from brands:
Let’s explore why it’s never a good idea to use a noreply email address for your email marketing campaigns and what you should use instead.
While noreply addresses are tempting, there are a few reasons why you shouldn’t use one. Here are the most important things to consider:
Certain ISPs, network spam filters, and customers’ personal email security settings are set up to send noreply email to the junk folder. This will decrease your open and overall deliverability rates and will increase your chances of landing in the spam folder. Being inboxed less leads to lower possible conversions, especially when sending blast emails.
Also looking at email trends from a broader sense, 53% of email is opened on mobile devices. To accommodate for the smaller screen, many email clients set their inboxes on mobile devices to just show a preview of the sender and your email address as well. As a consumer, would you open an email with a noreply email address? You’re more likely to feel like a company is unapproachable.
Send me the Mailjet newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.
When a customer replies to an email, it’s because they have something to share. They could have a support question, a comment about your product or service, or just some constructive feedback that can help a brand with its marketing efforts. Adding your contact information to your email campaigns will help direct some of these comments, but it’s likely many of your customers still opt for just replying to your campaigns. If they get an auto-reply notification telling them the email can’t be delivered, how do you think they’ll feel?
Post-GDPR, it is also more important than ever to take the time to evaluate whether you should use a no-reply address for your marketing campaigns. How can you expect your subscribers to contact you to claim their rights if you don’t allow them to do so? An autoresponder is just not good enough.
Most ISPs do not allow email recipients to add noreply emails to their address books. If a recipient can’t add you to their address book, you’re more likely to be flagged as spam and sent to the junk folder. It is also much more likely for subscribers to hit the spam button if they can’t reply back requesting removal of their email address. I’ve seen cases where customers unsubscribed from some of their favorite brands because noreply emails addresses were not being monitored.
Another interesting point to remember is that it shows credibility to ISPs when recipients engage with your email, replying to your email being one of those cases. Safe sender privileges include bypassing some of an ISPs mail filters and delivering straight to the inbox.
Hopefully, by now you understand the importance of adding a reply-to address to your marketing and transactional emails. To help you implement yours, here are some best practices you should keep in mind.
Setting up a dedicated reply-to address will help you filter and follow up on customer feedback. Create an email distro and ensure relevant team members, like support team agents or community managers, have access to the address.
For example, you could set something up like:
Sometimes, that dedicated email address might be connected to support software tools like Zendesk, which allow companies to create a generic support email address for incoming support tickets.
If you’ve not set up a custom domain yet, we highly recommend you do so. It improves your sender reputation, builds brand credibility in the inbox, reduces susceptibility to phishing, and helps with email authentication.
However, if you’ve not got around to setting up a custom domain yet and are using a free email provider such as Gmail, this can still be set up easily.
We’ve all suffered it. Every company’s reply-to address usually receives an influx of out-of-office messages and other automated responses after a campaign is sent.
To avoid these types of messages clogging your dedicated email address, filter out messages containing keywords such as “delivery notification” or “out of office” in the subject line or body of the email. This will make handling the legitimate messages easier.
As mentioned before, some people skip over the unsubscribe link and reply directly to your email asking to be removed. These customers bypass the unsubscribe link because they’re afraid it will only flood their mailbox with more emails.
Make sure you honor these requests promptly and remove the email addresses from your list. The last thing you want is for these recipients to feel like they are being unheard and in frustration, mark your email as spam.
Also, monitor your reply email address if you’re sending to a domain where the recipient never opted into your email program (something you shouldn’t be doing anyway). The mail administrator (at the recipient’s domain) may try to contact you at your reply email address.
This is a crucial moment because if you don’t respond back, the email recipient may report you to a blocklist and/or try to contact the email service provider (ESP) or data center to complain about your email.
A reply-to email address is essential to any email marketing program. It fosters two-way communication and nurtures the conversation between you and your customers.
Many B2B senders will use a sales person’s email address as the reply-to to keep the conversation personal and on a more one-to-one level, while B2C senders may use a general reply-to address that may be monitored by multiple email marketing professionals.
Both scenarios build the confidence that when the recipient replies to the marketing email, the email will be received and followed up on.
Often, customers reply to emails because they have a support request or concern, or there’s probably something in your email they want to know more about.
When planning your campaigns, think about the kind of questions users might have and proactively offer resources that help answer them.
This will be especially important post-purchase or during the onboarding period. Including links to additional resources, FAQ pages, technical documentation, or your help center will help reduce the number of responses your reply-to address gets and improve your customer experience overall.
To sum it up, the noreply email address should never be used to send from. It tells your customers that you don’t really care what they have to say.
By using a noreply email address, you’re also missing out on an important opportunity to collect feedback and learn how to improve your product and also it’s not the best way to grow your email list.
So now you know: Swap your noreply to a reply-to email address and build a stronger relationship with your recipients.
Want to learn more about email deliverability best practices? Sign up to our newsletter now and get all the tips and tricks in your inbox.
***
This blog post was written by Chris Arrendale, the CEO and Founder of Inbox Pros. Chris has more than 13 years of experience in the technology and software industry and has worked directly with many different ISPs, webmail providers, spam filter providers, blocklists, and partners to resolve email deliverability and privacy issues. He works with many leading organizations and enterprises to ensure regulatory compliance and maximum deliverability across all systems.
The post Noreply email address: Best practices for your email strategy appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post Email headers: What are they and how to read them appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>In this post, we’re going to tell you about email headers, how they can help you, and of course, where exactly you can find them.
Emails contain three main elements: the message body, the envelope, and the message header. You probably already know what the body of an email refers to – the main text of the message. That’s where your design goes. Everything written in an email, from “Dear Professor Dumbledore” to “Sincerely Yours, Harry Potter,” is considered the body of the message. The message’s sender and recipient can both see this information.
The message envelope is something that neither the sender nor the recipient sees. The envelope is the information that the email program and outgoing server use to communicate and deliver the message to the correct email address. When the message writer hits send, this information is created before the email lands in the recipient’s inbox (hopefully not the spam folder).
Finally, the email header is a log of an email’s technical details that both the sender and recipient can see, though it can’t be as easily viewed as the email body. It contains details regarding the sender, receiver, and message. This includes any email addresses that are involved in the conversation, the servers the email passed through while being sent, and more.
Email headers appear complicated, but they include valuable information for email professionals and SMB marketers.
Email headers are typically used to see information, such as who sent and received a message, where the message passed through a mail server, and what kind of errors may have prevented the email from reaching its intended destination.
Let’s explore the multitude of ways email headers can be used.
For email deliverability, headers can provide helpful information about positive or negative interactions with a message. They help identify any errors that may have impacted delivery. This data is invaluable to understanding why messages may be failing to reach the intended recipient and can provide clues on how to fix deliverability problems.
Email headers help you verify if the message was secure in transit and reached its recipient without errors or changes. If the message encountered a problem on the way to its destination or was never delivered at all, a tech-savvy user can review the header and figure out exactly what affected the message. Did Harry’s email go to Aberfoth Dumbledore, instead of Albus?
After identifying issues, the user can then fix problems that help new emails get where they need to go.
Email headers are a great way to verify the source of an email and can help protect against spam and phishing attacks. It is recommended to always inspect email headers to verify the sender’s address before responding to an email. Doing this can help ensure that messages are coming from trusted sources, and can warn users against responding to spoofing or malicious emails. No one wants to be duped!
Since the header contains the email’s routing information, you can view exactly which mail servers, ISPs, and email platforms the message has been through. This can help with tracking the originator of a message, as well as identifying any points where the email may have been tampered with. Knowing all the stops an email has gone through is especially helpful in cases of malicious activities.
Email headers can also be used to identify who sent an email as well as the recipient’s information. This is especially useful in understanding whether or not a message was actually sent from the sender in question, or if it was a third party attempting to impersonate the purported sender.
Due to their ability to quickly help solve many issues, headers are a valuable resource for organizations concerned with deliverability and the technical process of sending an email.
If you’re beginning an email marketing campaign, it’s important to correctly configure your delivery systems beforehand and send a few test emails. With the right tools in place, you will be able to give yourself a leg up in deliverability before your email even leaves your outbox.
Send me the Mailjet newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.
Email headers provide you with important information. The standard parts of an email header are below:
Data |
Description |
---|---|
From |
This section refers to the name and email address of the sender, which is the origin of the email. |
To |
This section refers to the name and email address of the recipient. If there’s more than one recipient, the name and email address of each will appear in this section. |
Date |
This section refers to the sent email’s date and timestamp. |
Subject |
This section refers to the subject line used in the email message. |
Elsewhere in the header, you can also find the following:
Data |
Description |
---|---|
Return-Path |
If an error is found while the email is being sent or, for any reason, the email cannot reach the intended inbox, the mail is sent to the address specified in this section. In this case, it will generally be sent back to the sender via the “return path” – specified in the “from” section. |
Received |
This section refers to all of the message’s recipients. For each successful point of receipt, we can see the SMTP server IP address and the different authentication protocols (SPF, DKIM-Signature, DMARC) that have (or have not) been validated by the different servers. |
Message-ID |
This section refers to the unique identifier of each specific email message. |
MIME-version |
When present, MIME-version (Multipurpose Internet Mail Extensions) refers to programs that support email attachments outside of the main message, like static images, and audio/video components. |
Content-type |
This section refers to the different content types in each message (text, jpeg, etc.). |
Precedence |
Gmail asks that email senders include Precedence: Bulk in any header that is sent to multiple Subscribers. It’s optional, but the idea is to prevent autoresponder loops as well as help Google correctly identify bulk email sends. |
Almost all webmail providers contain email headers for each message. Below, you can see instructions for finding headers on popular email clients.
To find headers in Gmail, you:
A few clicks is all you need to find email headers in Gmail.
To find mail headers on the Microsoft Outlook web browser, you:
The popular Microsoft Outlook email client makes it easy to find email headers.
In the Microsoft Outlook app, you:
To find email headers in Yahoo Mail:
Quickly locate email headers with Yahoo Mail.
To find email headers in Apple Mail, you:
Apple’s emphasis on transparency includes making headers easy to locate on the Apple Mail client.
Viewing email headers in Thunderbird is straightforward as well:
To find headers in ProtonMail:
How to find email headers in ProtonMail with just a few clicks.
To view the full headers for an email message in AOL Mail:
To find email headers in Zoho mail:
Zoho has a number of options for viewing and downloading full email headers.
To find email headers in GMX:
It just takes two steps to find and view full email headers in GMX.
To access the full email headers on Mail.com:
It just takes two steps to find and view full email headers in Mail.com.
Email headers may seem unfamiliar to those who have never viewed them. However, they’re an important part of a good deliverability strategy.
You can use email headers to find outdetailed information about your emails’ journey and if they’re being properly delivered. Becoming familiar with them will help you launch successful email campaigns and view their results.
Send me the Mailjet newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.
The post Email headers: What are they and how to read them appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post What is an SMTP relay and why do we use it? appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>Setting up contact lists and creating your first newsletter are great starting points, but if you’re looking to take the next step in your understanding of email marketing, then you should take a closer look at SMTP relays.
SMTP stands for Simple Mail Transfer Protocol and is the backend system that helps you and your company send, receive, and relay messages between email senders and receivers. Let’s look at what an SMTP relay is and how it works.
An SMTP relay is a protocol that allows email to be transmitted through the internet, from one SMTP server (commonly referred to as a “smart host”) to another. It was first created in 1982 and continues to be the internet standard widely used today.
An SMTP relay is an email relay service that works in two steps:
Simple enough, right? To make things even clearer it might help to define some of the commons terms you’re likely to hear around SMTP relays:
SMTP terminology |
Definition |
---|---|
SMTP |
SMTP, or Simple Mail Transfer Protocol, is the language email servers use to send and receive messages. Think of it as the postal system for the digital world, ensuring smooth delivery of your electronic letters. |
Open relay |
An open relay is a mail server that allows anyone on the internet to send email through it, regardless of whether they are authorized users or not. This was once a common configuration, but it is now considered a security risk as it can be easily exploited by spammers and malware distributors. |
SMTP server |
An SMTP server acts like the post office for email, sending your messages to their destinations on the internet. Think of it as the digital mail truck that picks up your email and delivers it to the recipient’s mailbox. |
SMTP relay service |
With an SMTP relay service, you’re tapping into a specialized service provider that handles all the heavy lifting for you. They’ve got the infrastructure, the expertise, and the experience to ensure your emails reach their destination reliably and securely. It’s like having a team of professional mail carriers at your beck and call. |
Smart host |
Smart host and SMTP relay are used interchangeably. However, the primary difference is security: smart hosts require SMTP authentication (SMTP-auth) to relay emails, whereas SMTP relay does not. |
To better understand how an SMTP relay works, let’s imagine the journey that your normal snail mail may take to get to its destination:
Email relay is the process of transmitting an email message from one server to another. In the picture above, the local post offices would be the SMTP servers and the email transfer that happens between them is what we call ‘relaying’.
So, for example, when you send out your latest campaign “Cute puppies looking for a foster home”, your company’s SMTP server relays your email to the recipient’s server.
But if you were to send that campaign to someone within your organization’s domain, there would be no ‘email relay,’ as your domain’s SMTP server wouldn’t need to transfer the email to a different SMTP server.
Despite all this talk of SMTP relays and servers, the question remains. How does the SMTP relay process impact my email marketing efforts?
Well, as an email marketer, understanding the SMTP relaying process and its role in bulk emailing is important for several reasons:
SMTP is one of the most widely adopted protocols for email transmission (along with email APIs). Many senders use it to send and receive emails.
This makes SMTP crucial for ensuring your marketing emails reach their intended audience across various email providers, regardless of their location.
SMTP protocol allows email delivery and tracking platforms, such as Mailjet, to more accurately analyze the performance of email campaigns.
Monitoring SMTP response codes can provide insights into the success of your email deliveries, including delivery rates and open and click rates, and identify potential issues that need addressing.
When an email cannot be delivered to the recipient’s inbox for various reasons (an email address doesn’t exist, the mailbox is full, etc.), the receiving server sends a bounce notification back to the sender.
The SMTP protocol helps email delivery and tracking platforms manage these email bounce messages, allowing you to clean and maintain your email lists to improve deliverability and sender reputation.
SMTP authentication mechanisms, such as SMTP AUTH, enable you to add basic email authentication protocols such as SPF and DKIM. These help guard your campaigns from email spoofing, spam, and phishing attacks.
Additionally, SMTP uses TLS (Transport Layer Security) – the successor to SSL (Secure Socket Layer) – to encrypt communication between email servers, further enhancing the security of your email communications.
Send me the Mailjet newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.
So, what does this protocol look like when it comes to an email service provider like Mailjet? Getting the most out of your own SMTP relay server is not easy, so most businesses that need to send mass email to their customers (email marketing campaigns and transactional emails) use SMTP relay for ease of maintenance and added analytics insights.
Sending through an email service provider via an SMTP relay saves companies from having to run their own mail server. As you can see in the diagram below, the business or sender creates the email, and their server routes it through Mailjet’s SMTP server to prepare and send it out to recipients.
To combat spam, many webmail providers and email clients (i.e., Gmail, Microsoft Outlook, Yahoo, etc.) put a limit on how many emails you can send to different recipients per day. As businesses who need to communicate en mass with their audience would often exceed this limit, they will require the services of an enterprise level email sending platform – like Mailjet.
An SMTP relay provider can help businesses and organizations deliver large volumes of email without getting them mislabeled as spam or running up against small sending limits.
Email service providers (ESP) invest a lot of resources into building their own email infrastructure to handle large volumes and work closely with the major internet service providers (ISP) and webmail providers to improve email deliverability and deliver these emails straight to the recipient’s inbox.
There’s an added layer of value to sending through an email service provider. With Mailjet, before our SMTP servers send an email, our system automatically adds link trackers to the body of your message. This then allows you, as the user, to properly track opens and clicks after an email has been received.
Mailjet also translates feedback from ISPs (Gmail, Yahoo, AOL, etc.), since each one communicates in its own way. Our service saves developers time by converting this into an easily identifiable response, displaying whether an email has been delivered or has bounced. These metrics make it easier for you to identify issues that might impact your email deliverability.
Aha! Another tricky aspect of the email world. To understand what SMTP ports are and how they work, we need to take a step back and see what happens when computers communicate with each other on the internet.
Let’s say you are trying to reach mailjet.com. In this case, the Domain Name System (DNS) is converting this to the actual IP address that is hidden behind the name of the site. In Mailjet’s case, this is 104.199.110.216. You could remember 4-5 IPs like ours, but who can remember more, or really…who would want to?
An SMTP port is meant to be used for SMTP connections. Here are some of the SMTP ports you’ll find in use today:
SMTP Port |
Use case |
---|---|
PORT 25: The standard port |
Use for non-encrypted connections. Still thought of as the standard SMTP port, most residential ISPs and hosting providers block port 25 due to heavy spam traffic. |
PORT 465: The TLS port |
Use if your application or company require. Port 465 is a port that carries out message submission over Implicit TLS protocol. |
PORT 587: The default port |
Use for your business or for secure connections. Port 587 is the default SMTP port, most businesses use this port. |
PORT 2525: The alternate port |
Use as an alternate if port 587 is blocked. Most ESPs support port 2525. |
These few ports are the most used ones for these types of connection, and because of that they are almost always open, which means you should be able to reach your destination.
Ultimately, SMTP relay makes our lives as marketers much simpler by handling all the heavy lifting in the backend so that we can spend more time crafting content and building out our contact lists.
So, if you’d like to improve your email placement, have greater insights in email performance, and get your emails straight into the inbox, take a look at our SMTP Server.
The post What is an SMTP relay and why do we use it? appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post Marketing calendar 2025: Dates you shouldn’t miss this year appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>To help you with that, we’ve decided to recap all relevant dates for 2025 in one blog post so you can strategize for the year ahead. Read on and find out which dates you should include in your marketing strategy and get our free 2025 Marketing Calendar. Time to get the diary out.
Some people think that implementing a marketing strategy is the longest part of the process. Well, they’re wrong. The implementation itself is actually one of the easier steps at the end of the process.
The real work comes before when you have to set goals and establish priorities. The earlier you start planning through every step of the strategy, the fewer problems you’ll run into down the line.
To do that in the best way possible, we’ve created a marketing calendar with all the key dates you’ll need to remember in 2025:
Download the 2025 Marketing Calendar.
These last few years have shown us that unpredictable circumstances require brands to be able to adapt their communication strategies to engage with their target audience and make the most out of their marketing efforts.
Before you start, ask yourself these questions:
Keep in mind that a year has so many special dates, holidays, and marketing moments – planning is a must in business and in life!
It is important to decide which promotions (like special deals or key product sales) you want to plan your marketing activities around. This decision should be based on the goals you established for yourself when you mapped out your marketing strategy. Focusing on the wrong promotional strategy can easily ruin your KPIs, and nobody wants that!
When thinking about your holiday or special day marketing campaigns, remember to plan out your promotions in different stages:
Once you have decided what the right marketing strategy is and what kind of sales promotions you’re going to offer, you’ll need to focus on getting your marketing messages out to your audience.
For marketing promotions around special dates, like the ones we’ve added to our 2025 Marketing Calendar, the best strategy is to go omnichannel. Marketing campaigns that combine different channels (for example, in-store, online, social media, sms marketing or email marketing) allow you to engage with your audience in a different way and also provide many upselling and cross-selling opportunities.
There is a range of channels for you to leverage, but that doesn’t mean you should try to use them all just to tick those boxes. While something like TikTok might be a bit of a stretch if you’re trying to sell dental implants, there are a few must-haves that will apply to most businesses.
Send me the Mailjet newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.
One of those channels is email (yeah, you probably guessed that…). Email continues to be the best marketing channel for ROI at $35 and $40 for every $1 spent, as it allows you to personalize, segment, and optimize your email campaigns with detailed stats. Another big plus is that your marketing messages will stay in your contacts’ inboxes for them to use that promo code or find your store’s address when the time comes.
No marketer can possibly remember every single date on the calendar. Use organizational and project management tools to free up that much needed headspace:
To plan and schedule your email campaigns right on time, let’s have a closer look at 2025 dates to keep in mind.
A day in the life of an email marketer.
Looking for a 2025 marketing calendar to guide your marketing strategy for the new year? We’ve got you covered. We’ve listed all the key dates below and paired them up with great resources to help you plan the best campaigns in 2025.
January is all about New Year’s resolutions, goal setting, and mourning the loss of the holiday season.
Start off by wishing your users a Happy New Year, and use this month to offer special deals on products or services that might come in handy when they start working on those New Year’s resolutions.
Other special dates in January include the traditional Winter Sales in European countries and Blue Monday, so think about what you can do to make your users’ days a bit warmer!
The excitement of the new year might be gone for some, but February has its own share of special dates for marketers to celebrate!
In fact, February has three of the biggest moments of the year: Black History Month, Valentine’s Day, and the Super Bowl.
According to the National Retail Federation, US Valentine’s Day gift-givers spent an estimated $26 billion in 2024, and around $16.5 billion on food, decorations, and team apparel for the Super Bowl, with each person spending an average of $86.5.
Looking at these figures, February is definitely a month to keep in mind when it comes to planning your marketing efforts.
March is all about women, but it’s also a key period for the Islamic faith.
Starting March 1, we celebrate Women’s History Month with International Women’s Day taking place on March 8th. Use this opportunity to share stories from the women in your company and how you support equality in the workplace.
Ramadan marks the start of the most important dates in a Muslim’s calendar. With 1.9B followers worldwide, Muslims make up a quarter of the world’s population. Like any religious event, Ramadan is to be celebrated and respected.
Other special dates in March in our 2025 Marketing Calendar include World Wildlife Day, International Transgender Day of Visibility, and a fan-favorite… St. Patrick’s Day!
With Easter starting in April this year, you can look forward to longer and warmer days for your easter egg hunts! Fun fact – Easter takes place on the first full moon after the spring equinox.
For some, Easter is all about tradition, be it religious or not. For others, it’s more about the chocolate rabbits and egg hunts. So why not hide an Easter Egg in your marketing campaigns to increase engagement this April?
Other special dates include Earth Day and April Fools’ Day, so it’s a great excuse to send a serious message about climate change or have some fun with your email marketing calendar.
There are a few important dates in May, but is there any more important than Star Wars Day? Whether you’re a fan or not, there’s no denying that this is a BIG date on social media, so make sure you leverage it. May the 4th be with you.
Many countries also celebrate Mother’s Day in May. This is a time for many to show appreciation towards their mother(s) and mother figures. This day (and of course the other 364 days in the year) is perfect for lavishing mothers with lots of love, flowers, and chocolate. But be mindful, many people have lost their mothers or never had a mother to begin with – consider sending an optional opt-out to your subscribers before your Mother’s Day campaign.
Other special dates for May in our 2025 Marketing Calendar include the Eurovision Song Contest and May Day (International Workers’ Day).
It’s getting warmer and warmer outside, and that means it’s time for summer fun.
For many companies, the summer means a slump in sales. Instead of (online) shopping, events like vacations and other outdoor activities are in people’s minds. So, don’t be surprised if your marketing performance starts to decline rather than grow during the next few weeks.
Does this mean you should interrupt your email marketing campaigns? Absolutely not!
In fact, the summer might be the best time of year to stand out from your competitors and get in touch with your contacts. Make sure you start working on adjusting your email marketing strategy for the next couple of months.
June 1 also marks the start of Pride Month. Other important dates include Father’s Day (in the US and other countries) and the start of the Wimbledon tennis competition.
The holiday season is finally here! And even though we warned you to plan ahead in June, you might be finding it quite challenging to keep your users engaged during the summer.
However, this summer comes packed with great sports events, including the Tour de France, the Wimbledon final and of course, the 2025 FIFA Club World Cup Final.
Other special dates in July include the Fourth of July (obviously!) and Emoji Day!
August is generally a slow month in many countries. The summer is in full swing, but as the weeks pass, more and more people start coming home from their vacation. So, it’s the perfect time to target them with any offers or promotions they might’ve missed.
How do you do this effectively you ask? Well, with email segmentation, of course!
With email segmentation, you can filter contacts based on their past behavior (for example, anyone that hasn’t opened an email since a certain date) and resend them any special summer offers they might have missed.
September is here and it’s back-to-school season…and not just for kids!
In fact, September sometimes feels like a second January. Some might hate it, some might love it, but we all feel it. New goals, new projects, and new marketing opportunities. Children (and adults!) can’t wait to buy new school bags, pens, pencils, and planners for the new school year.
Keep that in mind and use your marketing plan calendar to create some campaigns to re-engage your customers after the summer with incentives like special promotions, sweepstakes, and exclusive offers.
And don’t forget to target people who left goods and services in their online cart.
The scariest month of the year has finally arrived!
Autumn is officially here, and so is Halloween! This means that, offline as well as online, monsters and other creatures could be just around the corner, waiting to scare people.
For marketers, October marks the start of Q4 and the holiday season, a huge period for brands everywhere. With big dates coming up, it is the time to start planning what your holiday strategy will look like, and it is also the moment to let your creative juices flow and start getting festive.
November is the strongest time of the year for B2C sales, and it’s the official month for buying our holiday gifts. Immediately after Thanksgiving come dates like Black Friday, Small Business Saturday, and Cyber Monday, so it’s time to kick it into high gear.
In other words: You should definitely have these dates marked in red on your marketing calendar for 2025 so you can send special promotions and offers.
We know you won’t forget, but just in case, we’ve already marked them for you on our downloadable 2025 Marketing Calendar.
PS: Have you checked out our new Black Friday and Cyber Monday email templates yet?
The best comes last: It’s finally Christmas!
It’s cold outside, the streets are covered with snow, and there are festive decorations and lights everywhere! While some prefer to go outside, those that stay in might do a lot of online shopping for those last-minute Christmas presents. This is your chance to give Q4 a final push with special holiday campaigns and offers.
But December is not just about selling – it’s also about joining in on the festive atmosphere and thanking your contacts for spending the year with you.
You can get creative and run a little Christmas competition on social media (best Christmas tree or craziest holiday decorations) where your customers can win coupons or goodies, or film your team singing Christmas carols for an original Merry Christmas newsletter.
As you can see, it doesn’t get more creative than December to end the year successfully.
Building an effective marketing calendar requires more than just plotting dates on a chart: It requires thoughtful consideration of long-term business objectives, your target audience, and different product releases. For some, the idea of pulling all that together can seem a little overwhelming.
So, we’ve decided to help out and outline the key steps you need to follow below:
Creating a marketing calendar for the new year is a great way to work ahead and get aligned over the campaigns you want to run in 2025.
We’ve saved the dates you can’t forget and given you all the resources you need to make 2024 your best marketing year yet. Now, it’s up to you to work on your campaigns and increase engagement with offers, promotions, or competitions.
Want to take the 2025 Marketing Calendar with you?
This is an updated version of the article “Marketing Calendar 2022: Dates you shouldn’t miss this year“ and published on the Mailjet blog on October 31, 2022.
The post Marketing calendar 2025: Dates you shouldn’t miss this year appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post BFCM email marketing: What consumers want in 2025 appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>So, are you giving those shoppers what they want and expect? How important is email marketing when it comes to Black Friday, Cyber Monday (BFCM), and the broader holiday shopping season?
We conducted an international email engagement survey that included questions on consumer preferences for Black Friday and Cyber Monday. Let’s find out how those insights can inform your holiday marketing strategy.
Our survey included consumers of all ages from the U.S., UK, France, Germany, and Spain. We’ve compiled key results into an infographic you can check out below.
Here are some important takeaways on how to promote Black Friday:
A significant majority of consumers (93%) consider transactional messages to be important during the holiday season.
We’re not going to lie – it’s pretty cool to see email top the list of preferred channels for Black Friday and Cyber Monday promotions. Almost 60% of consumers selected the email inbox as one of the places they want to hear about holiday deals.
This means email marketing should be an indispensable part of your strategy for the holidays. However, it certainly does not mean email is the only channel that matters.
Along with traditional channels such as the Website (42.9%) and Social media ads (41.9%), consumers also selected Facebook messenger (17.6%), Text messaging (22.9%) and WhatsApp (24.8%). This goes to show how important an omnichannel marketing approach to the BFCM and holiday season is if you want to maximize the reach of your campaigns.
The inbox is a place where consumers have grown to expect to get marketing messages from brands. Black Friday and Cyber Monday email marketing campaigns deliver a rich experience with branding and eye-catching visuals that aren’t possible with basic SMS texts.
So, if consumers want and expect emails from brands during holiday shopping, you’ve got to make sure you get the most out of your email marketing strategy. That includes maximizing email performance with engaging content and design. But you also need to make sure those engaging emails actually make it to the inbox, which means following deliverability best practices – from prepping your email list before the holiday season to embracing the benefits of the Gmail Promotions tab to highlight the deals you’re offering.
Consumers are looking for promotions in their inboxes this time of year, it’s a good time to think about how you’re taking advantage of the Gmail Promotions tab.
These days, we use email much less often for personal communications. On the other hand, lots of personal conversations take place with texting. So, consumers may not view texts as a familiar way to receive promotions. But that’s changing…
47% of consumers say they would be likely to engage with an interactive holiday shopping promotion sent to their messaging app, with a further 61.9% selecting at least one mobile messaging option as a preferred channel to receive promotions.
MMS (Multimedia Messaging Services) and RCS (Rich Communication Services) are bringing a much more engaging experience to consumers. As cutting-edge brands make these methods part of their marketing strategy, consumers are bound to respond positively.
In some cases, RCS holiday campaigns could provide an experience that’s just as engaging as a highly interactive email. These kinds of campaigns are also more conversational than the typical marketing email. Recipients can ask questions and get immediate answers. Check out the RCS example below from Sinch.
With so many ways for brands and consumers to connect, it’s likely that your customers are open to hearing from you on a variety of communication channels. Are you letting them choose?
The best holiday communication strategy is one that reaches your customers wherever they are, on whatever channel they want. That’s why many brands are moving towards an omnichannel experience that guides people along a complete customer journey.
Your customers’ communication preferences will differ from person to person. The more options you can offer, the better. It’s also smart to consider different demographics. Here are a few examples from our survey that can help you decide how to promote Black Friday deals:
Our phones connect us to just about everything. That’s why an undeniable trend in retail is the rise of shopping on mobile devices. Whether it’s a push notification from an application, a text, or an email, all these messages show up as notifications on smartphones.
Data from Adobe Analytics over the 2024 holiday season (November 1 – December 31) showed that mobile revenue share hit a record of 54.5% of online shopping. Mobile shopping hit its peak on Christmas Day driving 65% of online sales, totaling $241.5 billion.
That’s a mind-boggling figure, meaning for email senders it’s extremely important to have responsive email marketing campaigns that adapt to various screen sizes. Our Inbox Insights report found that responsive emails top the list of the biggest design and development challenges. Get some advice from email marketing and deliverability expert,Megan Boshuyzen, on taking a mobile-first approach to email development.
The Mailjet platform is an excellent tool for designing mobile-friendly emails. Check out a demo for our Email Editor, or find out how to use MJML, a responsive email framework that’s easy to learn.
It’s common to hear people complain about how it’s too early for holiday items to show up on store shelves and holiday advertisements to start airing. But our survey reveals that, for many consumers, the sooner Black Friday promotions arrive the better.
As soon as possible: That’s when more than one-third of shoppers say they want to start hearing about BFCM deals. Another 37.3% of survey respondents want to know about Black Friday deals as early as a month in advance.
Only 4.4% of consumers want to wait until the day before a sale to hear about a big holiday promotion. This suggests that most shoppers are trying to make plans to get their shopping done on time and get a great deal that fits into their holiday budgets.
Here’s how to apply this finding to your email marketing strategy: There’s a good chance that your most engaged subscribers are also the people who want to know about your holiday deals ASAP. You can segment these contacts and send campaigns to them earlier and more often.
If you’re planning out a marketing calendar for next year, keep the date that falls one month before Black Friday in mind. That would be about a week before Halloween (October 24th in 2025). This could be the perfect time for a “Deal Reveal Day” that gives your customers a preview of what’s to come.
Let’s not forget that email serves purposes beyond delivering promotions and marketing messages. Transactional emails are an extremely important part of the customer experience, especially during holiday shopping.
The consumers we surveyed definitely agree. Results show more than 93% of people view transactional messages during the holidays as either somewhat or very important.
It’s no secret why that’s the case. Getting packages delivered on time is definitely necessary when Christmas, Hannukah, and Kwanza are right around the corner. Plus, people need a way to keep track of everything they’ve ordered as well as how much they’re spending.
Order confirmations are digital receipts that contain information shoppers may need. Shipping updates keep customers informed about potential delays and allow them to make backup plans if needed.
Holiday email deliverability is yet another key consideration. If transactional emails go missing or land in spam, your customers will get frustrated and lose trust in your brand. Transactional messages are vital to the customer experience. That’s one reason why 40% of senders who prioritize deliverability told Sinch Mailgun that Improved customer satisfaction was the biggest benefit of achieving inbox placement.
Of course, email isn’t the only channel that works well for transactional messages. Nearly everyone with a smartphone has received a transactional SMS at this point. Transactional text messages arrive quickly and have high open rates. Offering your customers the option of transactional messages via email and SMS is a good first step towards a more diverse communication strategy.
Reliable transactional messages support the customer experience. 93% of consumers say they are either somewhat or very important during the holidays.
Our gift to you this holiday season is a collection of other articles and advice to help you achieve success. Here are some resources for you to explore:
And if you need a little light reading to relieve the stress of holiday marketing, we’ve got just the thing to jingle your bells. Discover how email could have saved Christmas in some classic holiday films.
Want to get even more insights into how your customers engage with emails? Watch for more eye-opening survey results from Sinch Mailjet when we release “The path to email engagement 2024”, coming soon.
The post BFCM email marketing: What consumers want in 2025 appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post What is a webhook? Real-time email event tracking with Mailjet appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>By the end of this guide, you’ll understand how to set up and optimize webhook endpoints, handle different event types, and implement best practices for reliable, scalable email event processing.
A webhook is a simple way for one system to notify another that “something just happened.” It’s an HTTP POST request sent to a URL you provide (your “webhook endpoint”) containing a JSON payload that describes the event. Unlike APIs that you poll on a schedule, webhooks are event-driven as they push data only when there’s something new to report.
Think of webhooks as the internet’s version of a phone call: instead of repeatedly checking if something happened, the system calls you immediately when it does.
Webhooks offer several advantages for email marketing and transactional email workflows:
Understanding the difference between webhooks and traditional email API polling helps illustrate why webhooks are often the better choice:
API polling | Webhooks |
---|---|
Pull data on a timer, even if nothing changed | Event-based push notifications |
More requests and bandwidth usage | Fewer requests, more efficient |
Delayed insights due to polling intervals | Instant updates when events occur |
Complex scheduling and state management | Simpler automation workflows |
Mailjet can send webhook notifications for the following email events:
Each webhook contains a JSON payload with event-specific information. Here are examples of common event types:
{
"event": "open",
"time": 1433103519,
"MessageID": 19421777396190490,
"email": "api@mailjet.com",
"mj_campaign_id": 7173,
"mj_contact_id": 320,
"customcampaign": "",
"CustomID": "helloworld",
"Payload": "",
"ip": "127.0.0.1",
"geo": "US",
"agent": "Mozilla/5.0 ..."
}
{
"event": "bounce",
"time": 1430812195,
"MessageID": 13792286917004336,
"email": "bounce@mailjet.com",
"blocked": true,
"hard_bounce": true,
"error_related_to": "recipient",
"error": "user unknown"
}
Each event type requires different handling strategies:
Following these best practices ensures reliable webhook processing and optimal performance:
Mailjet automatically retries failed webhook deliveries for up to 24 hours if your endpoint doesn’t return a 200 OK response. If repeated errors persist, the webhook URL may be suspended. You can configure a backup URL to ensure continuous event delivery.
You can configure Mailjet webhooks using either the API or the web interface. Here are both approaches:
This method offers more control and is ideal for automated deployments.
Decide which events you want to track: sent, open, click, bounce, blocked, spam, or unsub.
Use the eventcallbackurl resource to configure your webhook:
curl -X POST \
https://api.mailjet.com/v3/REST/eventcallbackurl \
-H 'Authorization: Basic <base64_encoded_api_key:secret>' \
-H 'Content-Type: application/json' \
-d '{
"EventType": "open",
"Url": "https://example.com/webhooks/mailjet/open",
"Version": 2
}'
Configuration notes:
Send a test email and perform the tracked action (open, click, etc.) to verify you receive webhook events.
For teams preferring a visual interface:
Here are minimal webhook receiver implementations in popular programming languages:
const express = require('express');
const app = express();
app.use(express.json());
app.post('/webhooks/mailjet/open', (req, res) => {
// 1. Persist the event data quickly
console.log('Received webhook:', req.body);
// TODO: Save to queue or database
// await saveToQueue(req.body);
// 2. Acknowledge immediately
res.status(200).send('ok');
});
app.listen(3000, () => {
console.log('Webhook server running on port 3000');
});
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/webhooks/mailjet/open', methods=['POST'])
def handle_open_event():
data = request.get_json()
# Process the webhook data
print(f"Received webhook: {data}")
# TODO: Save to queue or database
# save_to_queue(data)
return jsonify({"status": "ok"}), 200
if __name__ == '__main__':
app.run(port=3000)
Here are some tips to help you get even more from webhooks.
Use Version=2 in your webhook configuration to reduce HTTP overhead by receiving multiple events in batched requests:
{
"EventType": "open",
"Url": "https://example.com/webhooks/mailjet/batch",
"Version": 2
}
Use CustomID and EventPayload parameters in your Send API calls to make webhook events easier to correlate with your internal systems:
{
"Messages": [{
"To": [{"Email": "user@example.com"}],
"Subject": "Welcome!",
"TextPart": "Welcome to our service!",
"CustomID": "user-123-welcome",
"EventPayload": "campaign=onboarding&segment=new_users"
}]
}
For high-volume applications, consider streaming events to third-party queue services:
Mailjet sends sent, open, click, bounce, blocked, spam, and unsub events. Each contains the MessageID, contact and campaign identifiers, and event-specific details (such as url for click events).
Events are pushed shortly after they occur, typically within seconds. If your endpoint doesn’t respond with HTTP 200 OK, Mailjet retries delivery for up to 24 hours.
Yes. Configure grouped delivery by setting Version=2 on your eventcallbackurl so Mailjet batches multiple events in one POST request.
Use HTTPS, protect the endpoint with basic authentication, and restrict access through IP filtering or API gateways. Always process payloads server-side and never expose webhook endpoints to client applications.
Follow this checklist to implement Mailjet webhooks successfully:
Now that you understand webhook fundamentals and implementation, consider exploring these related Mailjet features:
Webhooks provide a powerful, efficient way to receive real-time notifications about email events. By implementing Mailjet webhooks with proper error handling, security measures, and asynchronous processing, you can build responsive, data-driven email workflows that enhance customer experience and improve operational efficiency.
Remember to start simple, monitor your implementation closely, and scale your webhook processing as your email volume grows. With the foundation provided in this guide, you’re ready to harness the full power of real-time email event tracking.
The post What is a webhook? Real-time email event tracking with Mailjet appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post How to code an email receipt template with MJML and Mailjet’s templating language appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>By the end of this tutorial, you’ll have a fully functional receipt template that can handle complex order data, attach PDF invoices, and deliver reliably through Mailjet’s Send API v3.1.
Before diving into the implementation, let’s understand why this approach is superior to creating one-off HTML emails:
Your final email receipt template will include:
Before starting, ensure you have:
Let’s start by creating the basic structure of our receipt template using MJML. This will ensure our email is responsive and renders consistently across different email clients.
<mjml>
<mj-head>
<mj-title>Your receipt</mj-title>
<mj-attributes>
<mj-text font-family="Montserrat, Arial, sans-serif" />
<mj-class name="muted" color="#6b7280" font-size="13px" />
<mj-class name="total" font-weight="700" font-size="16px" />
</mj-attributes>
</mj-head>
<mj-body background-color="#f6f7fb">
<mj-section background-color="#ffffff" padding="24px">
<mj-column>
<mj-image width="120px" src="https://yourcdn.com/logo.png" alt="Brand" />
<mj-text font-size="20px" font-weight="700">Thanks for your purchase!</mj-text>
<mj-text css-class="muted">
Order {{var:order_id}} • {{var:order_date}} • {{var:currency}}
</mj-text>
<!-- Shipping notice (rendered conditionally in Step 2) -->
<mj-text css-class="muted">
Delivery to: {{var:shipping.name}}, {{var:shipping.address1}}, {{var:shipping.city}}
</mj-text>
<mj-divider border-color="#e5e7eb" />
<!-- Line items table (rendered via loop in Step 2) -->
<mj-table>
<tr style="text-align:left;">
<th style="padding:8px 0;">Item</th>
<th style="padding:8px 0;">Qty</th>
<th style="padding:8px 0; text-align:right;">Price</th>
</tr>
<!-- row loop here -->
</mj-table>
<mj-divider border-color="#e5e7eb" />
<mj-text>
Subtotal <span style="float:right;">{{var:money.subtotal}}</span>
</mj-text>
<mj-text>
Tax <span style="float:right;">{{var:money.tax}}</span>
</mj-text>
{{var:money.discount_row}} <!-- optional discount row via condition -->
<mj-text css-class="total">
Total <span style="float:right;">{{var:money.total}}</span>
</mj-text>
<mj-divider border-color="#e5e7eb" />
<mj-text css-class="muted">
Paid with {{var:payment.brand}} ending {{var:payment.last4}}. Need a PDF? It's attached.
</mj-text>
<mj-text css-class="muted">
Questions? Reply to this email or visit your order page: {{var:order_url}}
</mj-text>
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<mj-text css-class="muted" align="center">
© {{var:year}} Your Company • {{var:support_email}}
</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
Important Notes:
Now we’ll enhance our template with Mailjet’s templating language to handle dynamic content. This includes variables, conditions, and loops that will be processed when the email is sent.
Mailjet’s templating language supports several variable types:
Insert this code inside your MJML table to loop through order items:
{% for item in var:items %}
<tr>
<td style="padding:6px 0;">{{item.name}}</td>
<td style="padding:6px 0;">{{item.qty}}</td>
<td style="padding:6px 0; text-align:right;">{{item.price}}</td>
</tr>
{% endfor %}
Add conditional blocks to show shipping details only when relevant:
{% if var:has_shipping %}
<mj-text css-class="muted">
Delivery to: {{var:shipping.name}}, {{var:shipping.address1}}, {{var:shipping.city}}
</mj-text>
{% endif %}
Once you’ve compiled your MJML to HTML and added templating tags, you need to save it as a template in Mailjet. You have two options:
Paste your compiled HTML into a new template in the Mailjet app (Passport).
Create a new template:
curl -s -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/template \
-H 'Content-Type: application/json' \
-d '{
"Name":"Receipt v1",
"OwnerType":"user",
"IsTextPartGenerationEnabled":"true",
"Locale":"en_US"
}'
Add your HTML content to the template:
curl -s -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/template/TEMPLATE_ID/detailcontent \
-H 'Content-Type: application/json' \
-d '{
"Html-part":"<html>...your compiled MJML with templating tags...</html>",
"Text-part":"Your plain text fallback"
}'
Now comes the exciting part – sending your dynamic receipt email. Here’s a complete example that includes template variables, PDF attachment, and proper configuration:
curl -s -X POST \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3.1/send \
-H 'Content-Type: application/json' \
-d '{
"Messages":[
{
"From":{"Email":"billing@yourbrand.com","Name":"Your Brand Billing"},
"To":[{"Email":"customer@example.com","Name":"{{data:firstname:\"Customer\"}}"}],
"TemplateID": TEMPLATE_ID,
"TemplateLanguage": true,
"Subject": "Your receipt {{var:order_id}}",
"Variables": {
"order_id": "ORD-98765",
"order_date": "2025-08-27",
"currency": "USD",
"items": [
{"name":"Sneakers","qty":1,"price":"$99.00"},
{"name":"Socks","qty":2,"price":"$10.00"}
],
"money":{"subtotal":"$119.00","tax":"$9.52","discount":"$0.00","total":"$128.52"},
"has_shipping": true,
"shipping":{"name":"A. Smith","address1":"10 Market St","city":"Austin"},
"payment":{"brand":"Visa","last4":"4242"},
"order_url":"https://yourapp.com/orders/ORD-98765",
"support_email":"support@yourbrand.com",
"year":"2025"
},
"Attachments":[
{
"ContentType":"application/pdf",
"Filename":"Invoice-ORD-98765.pdf",
"Base64Content":"<base64-encoded-pdf>"
}
]
}
]
}'
URLTags: Add “utm_source=receipt&utm_medium=email” for tracking
Monitoring your email delivery is crucial for maintaining customer trust and debugging issues.
Register your webhook endpoint to receive real-time events:
For global businesses, proper localization is essential:
Ensure your receipts reach the inbox and comply with regulations:
For teams deploying at scale, consider these optimizations:
Here are some issues to troubleshoot if you run into problems with the above.
You now have a complete, production-ready email receipt system! Here are some ways to enhance it further:
For additional resources and code samples, check out the Mailjet templating samples repository which includes a complete working example you can use as a starting point.
This guide walked you through creating a professional email receipt template using MJML for responsive design and Mailjet’s templating language for dynamic content. You learned how to handle complex order data, attach PDF invoices, ensure reliable delivery, and monitor performance; all essential components for a production ecommerce email system that scales with your business.
The post How to code an email receipt template with MJML and Mailjet’s templating language appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>The post Golang send email: Send transactional email with Go in minutes appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>You’ll set up a sender, send your first message with Mailjet’s Go SDK, and learn patterns for templates, attachments, bulk sending, webhooks, and SMTP.
This is an example-first, production-ready approach to email integration.
Back in 2009, Google released a language called Go, often referred to as “Golang”. Go was introduced as a robust server-side programming language. Since then, it has never failed to fulfill its promises with low-level programming patterns and powerful data structures.
This guide is designed for:
Before getting started, you’ll need:
💡 Pro tip: Authenticate your domain via SPF/DKIM to improve inbox delivery rates. See the complete authentication guide for setup details and examples.
Let’s get you sending emails quickly using the official Mailjet Go SDK and the v3.1 Send API.
First, install the Mailjet Go SDK:
go get github.com/mailjet/mailjet-apiv3-go/v4
Then set your environment variables:
export MJ_APIKEY_PUBLIC=your_api_key
export MJ_APIKEY_PRIVATE=your_secret_key
export SENDER_EMAIL=your_verified_sender@yourdomain.com
Create a main.go file with the following code:
package main
import (
"fmt"
"log"
"os"
"github.com/mailjet/mailjet-apiv3-go/v4"
)
func main() {
mj := mailjet.NewMailjetClient(os.Getenv("MJ_APIKEY_PUBLIC"), os.Getenv("MJ_APIKEY_PRIVATE"))
msgs := []mailjet.InfoMessagesV31{
{
From: &mailjet.RecipientV31{Email: os.Getenv("SENDER_EMAIL"), Name: "Go App"},
To: &mailjet.RecipientsV31{
{Email: "recipient@example.com", Name: "Recipient"},
},
Subject: "Hello from Go + Mailjet",
TextPart: "This is a plain-text fallback.",
HTMLPart: "<h3>Hello from Go + Mailjet</h3><p>It works.</p>",
},
}
messages := mailjet.MessagesV31{Info: msgs}
res, err := mj.SendMailV31(&messages)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Status: %+v\n", res)
}
The Go SDK wraps Mailjet’s REST endpoints and provides a convenient SendMailV31 helper that accepts a Messages array. This approach gives you the full power of the Mailjet API with minimal code.
If you prefer SMTP or already use an SMTP MTA, you can use Mailjet’s SMTP relay with your API credentials.
package main
import (
"net/smtp"
"os"
)
func main() {
host := "in-v3.mailjet.com"
auth := smtp.PlainAuth("", os.Getenv("MJ_APIKEY_PUBLIC"), os.Getenv("MJ_APIKEY_PRIVATE"), host)
to := []string{"recipient@example.com"}
from := "sender@yourdomain.com"
msg := []byte(
"To: recipient@example.com\r\n" +
"From: Go App <sender@yourdomain.com>\r\n" +
"Subject: SMTP from Go via Mailjet\r\n" +
"MIME-Version: 1.0\r\n" +
"Content-Type: text/html; charset=UTF-8\r\n\r\n" +
"<p>Hello via SMTP</p>",
)
// Port 587 (TLS) or 465 (SSL) are common choices
err := smtp.SendMail(host+":587", auth, from, to, msg)
if err != nil {
log.Fatal(err)
}
}
For more details, see the SMTP configuration guide.
Design your email template once in the Mailjet dashboard, then pass a TemplateID and Variables from your Go code for dynamic content.
msgs := []mailjet.InfoMessagesV31{
{
From: &mailjet.RecipientV31{Email: os.Getenv("SENDER_EMAIL"), Name: "Go App"},
To: &mailjet.RecipientsV31{{Email: "recipient@example.com", Name: "Terry"}},
TemplateID: 123456, // replace with your template ID
TemplateLanguage: true, // enable Mailjet templating language
Variables: map[string]any{"first_name": "Terry", "plan": "Pro"},
Subject: "Welcome, {{var:first_name:\"there\"}}",
},
}
For more template examples, see this Stack Overflow discussion.
Send attachments and embed inline images in your emails. The total message size limit is 15 MB.
// Read and base64-encode your files first, then:
msgs := []mailjet.InfoMessagesV31{
{
From: &mailjet.RecipientV31{Email: os.Getenv("SENDER_EMAIL")},
To: &mailjet.RecipientsV31{{Email: "recipient@example.com"}},
Subject: "Invoice attached + inline logo",
HTMLPart: `<p>Thanks for your purchase!</p><img src="cid:logo1" alt="Company Logo">`,
Attachments: &[]mailjet.AttachmentV31{
{
ContentType: "application/pdf",
Filename: "invoice.pdf",
Base64Content: "<BASE64_STRING>", // your base64-encoded PDF
},
},
InlinedAttachments: &[]mailjet.InlinedAttachmentV31{
{
AttachmentV31: mailjet.AttachmentV31{
ContentType: "image/png",
Filename: "logo.png",
Base64Content: "<BASE64_PNG>", // your base64-encoded image
},
ContentID: "logo1", // referenced in HTML as cid:logo1
},
},
},
}
Send multiple personalized messages in a single API call. Each message is validated independently, so successful messages will be sent even if one fails.
msgs := []mailjet.InfoMessagesV31{
{
From: &mailjet.RecipientV31{Email: os.Getenv("SENDER_EMAIL")},
To: &mailjet.RecipientsV31{{Email: "user1@example.com"}},
Subject: "Welcome, User 1!",
HTMLPart: "<p>Hello User 1</p>",
},
{
From: &mailjet.RecipientV31{Email: os.Getenv("SENDER_EMAIL")},
To: &mailjet.RecipientsV31{{Email: "user2@example.com"}},
Subject: "Welcome, User 2!",
HTMLPart: "<p>Hello User 2</p>",
},
}
res, err := mj.SendMailV31(&mailjet.MessagesV31{Info: msgs})
if err != nil {
log.Fatal(err)
}
// Process results - each message gets its own status and ID
for i, result := range res.ResultsV31 {
fmt.Printf("Message %d: Status=%s, MessageID=%d\n", i, result.Status, result.To[0].MessageID)
}
The v3.1 Send API returns per-message status and IDs, making it easy to correlate results with your original messages. Use the MessageID to track delivery status later.
Configure webhooks to receive real-time notifications about email events like delivery, opens, clicks, bounces, and unsubscribes.
package main
import (
"encoding/json"
"net/http"
"log"
)
type MailjetEvent struct {
Event string `json:"event"`
Time int64 `json:"time"`
MessageID int64 `json:"MessageID"`
Email string `json:"email"`
URL string `json:"url,omitempty"` // for click events
Error string `json:"error,omitempty"` // for bounce/error events
}
func webhookHandler(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
var events []MailjetEvent
if err := json.NewDecoder(r.Body).Decode(&events); err != nil {
http.Error(w, "bad request", http.StatusBadRequest)
return
}
// Process events (consider using a queue for production)
for _, event := range events {
switch event.Event {
case "sent":
log.Printf("Message %d sent to %s", event.MessageID, event.Email)
case "open":
log.Printf("Message %d opened by %s", event.MessageID, event.Email)
case "click":
log.Printf("Message %d clicked by %s (URL: %s)", event.MessageID, event.Email, event.URL)
case "bounce":
log.Printf("Message %d bounced for %s: %s", event.MessageID, event.Email, event.Error)
}
}
// Always return 200 to acknowledge receipt
w.WriteHeader(http.StatusOK)
}
func main() {
http.HandleFunc("/mj/events", webhookHandler)
log.Fatal(http.ListenAndServe(":8080", nil))
}
For complete event documentation, see the Event Tracking API guide.
Here are three deliverability essentials to keep in mind.
Set up SPF and DKIM authentication for your sending domain to improve inbox placement and reduce the risk of spoofing:
Follow the complete domain authentication guide for step-by-step setup instructions.
If your Mailjet account is on the US infrastructure, configure the SDK to use the US API endpoint:
// For US region accounts
mj := mailjet.NewMailjetClient(apiKey, secretKey)
mj.SetAPIBase("https://api.us.mailjet.com/v3.1/")
Firewall considerations: Test your network’s port access; many providers block port 25
Here are the most common issues and how to troubleshoot them.
Use the official SDK with SendMailV31 as shown in the Quickstart section. It’s a single function call once your API keys are configured.
Yes! Point Go’s net/smtp package at in-v3.mailjet.com using your API key and secret as credentials, with port 587 or 465.
Set TemplateID, enable TemplateLanguage: true, and pass your data in the Variables field. Use {{var:name:”default”}} syntax in your templates.
Use webhooks for real-time event data, or check the Mailjet dashboard and REST API statistics endpoints for aggregated metrics.
Now that you have email sending working in your Go application, consider these enhancements:
With this foundation, you’re ready to build robust, scalable email functionality into your Go applications. The combination of Mailjet’s reliable infrastructure and Go’s performance makes for a powerful email solution.
The post Golang send email: Send transactional email with Go in minutes appeared first on Mailjet: Email Delivery Service for Marketing & Developer Teams.
]]>