<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: nataliiapolomkina</title>
    <description>The latest articles on DEV Community by nataliiapolomkina (@nataliiapolomkina).</description>
    <link>https://dev.to/nataliiapolomkina</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F933162%2Fc8f4ec5a-f2f7-44bd-afaa-474ef3bdada8.jpg</url>
      <title>DEV Community: nataliiapolomkina</title>
      <link>https://dev.to/nataliiapolomkina</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nataliiapolomkina"/>
    <language>en</language>
    <item>
      <title>How to Track Email Marketing Performance</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 04 Jan 2024 16:22:08 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/how-to-track-email-marketing-performance-244</link>
      <guid>https://dev.to/nataliiapolomkina/how-to-track-email-marketing-performance-244</guid>
      <description>&lt;p&gt;When done well, email marketing is a terrific digital marketing strategy that can drive a ton of traffic and generate new leads to your website. &lt;/p&gt;

&lt;p&gt;In fact, according to &lt;a href="https://www.lyfemarketing.com/blog/email-marketing-roi/"&gt;several studies&lt;/a&gt;, email marketing produces $44 for every $1 spent. If that isn’t a pretty amazing ROI, I don’t know what is!&lt;/p&gt;

&lt;p&gt;With email marketing, you can reach your target audience regularly, provide them with personalized offers, and can give them a much needed new reason to visit your website. &lt;/p&gt;

&lt;p&gt;There is also a &lt;a href="https://www.authorityhacker.com/best-email-marketing-software/"&gt;plethora of great automated tools&lt;/a&gt; now available to help you not only create your campaigns, but also schedule them, send them, design them, and even troubleshoot them. So now not only is email marketing a great marketing strategy, but the return on investment is even better than before with time-saving tools like these.&lt;/p&gt;

&lt;p&gt;So, needless to say, the value of &lt;a href="https://mailtrap.io/blog/email-marketing/"&gt;email marketing&lt;/a&gt; in your digital marketing campaigns has been proved. But, in order to make sure it brings as much value to your business as it can, you need to be sure your campaigns are optimized.&lt;/p&gt;

&lt;p&gt;To do so, you need to monitor the right stats with an email marketing report – something that would look a little like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--h7wJFTZW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v8xe2cb48tbf6do4fovp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h7wJFTZW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v8xe2cb48tbf6do4fovp.png" alt="Image description" width="800" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fe0IWIPo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3fz1gg25ojyq5v0k1gb8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fe0IWIPo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3fz1gg25ojyq5v0k1gb8.png" alt="Image description" width="800" height="202"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Having a marketing report that’s tracking the right &lt;a href="https://mailtrap.io/blog/email-marketing-metrics/"&gt;email marketing KPIs&lt;/a&gt; is of the utmost importance, since it allows you to make sure that not only are your emails being opened, but also that you get the traffic, conversions, and sales that you were aiming for. &lt;/p&gt;

&lt;p&gt;Without proper tracking, your email campaigns can become nothing less than a monumental waste of time; even worse, they can have a negative effect by increasing your unsubscribe rate, as we will see a little further in this article. &lt;/p&gt;

&lt;p&gt;Tracking your different KPIs gives you a much better chance of determining what’s bringing your strategies down, and what’s working best. Therefore giving you time to adjust your campaigns, tweak different things like your subject lines, your call to action, your email design, your segmentation, and more. &lt;/p&gt;

&lt;p&gt;So create your marketing report right now, and include these 7 essential email marketing key performance indicators to get the most out of your email campaigns.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Number of subscribers
&lt;/h2&gt;

&lt;p&gt;This email marketing metric tells you the number of people who have opted in to receiving promotional or marketing emails from you. &lt;/p&gt;

&lt;p&gt;Fundamentally, it’s a measure of how many potential eyeballs will see your email marketing efforts, so monitoring your list growth rate (the number of new subscribers and your unsubscribe rate) can be a gauge of the level of interest in your products or services. &lt;/p&gt;

&lt;p&gt;You want to keep your number of subscribers as high as possible and ensure a low &lt;a href="https://whop.com/blog/what-is-churn/"&gt;churn rate&lt;/a&gt;. Also keep this number in mind when you do campaigns to gain new subscribers for your newsletter, contests, or other marketing efforts to grow your subscriber list. &lt;/p&gt;

&lt;h2&gt;
  
  
  2. Open rate
&lt;/h2&gt;

&lt;p&gt;The open rate tells you how many people on your email list opened a campaign email you sent out. &lt;/p&gt;

&lt;p&gt;There are a few things that affect email open rates, such as the bounce rate, subject line of the email, the relevance of the email to your target audience, or whether the emails are landing up in the spam folder instead of the inbox. &lt;/p&gt;

&lt;p&gt;So, needless to say, this is one of the most important metrics to track in order to optimize your campaigns. If you see your open rate declining, you’ll want to investigate a bit further and fix any issues.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Click-through rate (CTR)
&lt;/h2&gt;

&lt;p&gt;This important metric measures the total number of subscribers who clicked a link in one of your emails. &lt;/p&gt;

&lt;p&gt;There are two types of click-through rates you can measure: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Total click-through rate &lt;/li&gt;
&lt;li&gt;Unique click-through rate&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It’s generally best to focus on the unique click-through rate, which measures the number of people who clicked on links, rather than the total number of clicks an email has received. After all, what you really want to know is how many people were attracted by your email or offer, not how many times they clicked on it. &lt;/p&gt;

&lt;h2&gt;
  
  
  4. Number of email bounces
&lt;/h2&gt;

&lt;p&gt;Bounces have to do with &lt;a href="https://mailtrap.io/blog/email-deliverability/"&gt;email deliverability&lt;/a&gt; – an email “bounces” when it’s not able to be delivered to a recipient for some reason or another. There are two kinds of bounces: hard bounces and soft bounces. &lt;/p&gt;

&lt;p&gt;Hard bounces occur when there’s no possible way for the email message to be delivered, such as when the email address no longer exists. &lt;/p&gt;

&lt;p&gt;Soft bounces, on the other hand, mean there’s just a temporary reason for non-delivery, such as when the recipient’s inbox is full. &lt;/p&gt;

&lt;p&gt;You’ll want to ensure good email list hygiene and delete email addresses that result in a hard bounce.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Website traffic
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KQnXkgVi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqxe9744f9a5um9uy2ur.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KQnXkgVi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qqxe9744f9a5um9uy2ur.png" alt="Image description" width="800" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Email marketing is just one piece of the puzzle – you need to monitor how all your marketing channels, from &lt;a href="https://loganix.com/seo/"&gt;SEO&lt;/a&gt; to social media, affect one another by tracking important metrics in Google Analytics and &lt;a href="https://www.socialpilot.co/social-media-analytics-tools"&gt;social media analytics tools&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Ultimately, the goal of an email marketing strategy, apart from &lt;a href="https://belkins.io/blog/email-deliverability/b2-b-email-marketing-a-strategic-approach-for-lead-generation"&gt;lead generation&lt;/a&gt;, is to bring in website traffic and conversions. Tracking how your email marketing campaigns are affecting web traffic with &lt;a href="https://dashthis.com/blog/top-5-google-analytics-dashboards-for-digital-marketers/"&gt;dashboards tracking Google Analytics data&lt;/a&gt; is a simple and effective solution for ensuring you’re getting optimal results.&lt;/p&gt;

&lt;p&gt;Make sure you’re tracking not only &lt;a href="https://www.semrush.com/website/"&gt;your overall traffic&lt;/a&gt;, but your traffic by medium, as well as a month-over-month or year-over-year comparison, to really see the trends. &lt;/p&gt;

&lt;h2&gt;
  
  
  6. Number of unsubscribes
&lt;/h2&gt;

&lt;p&gt;The unsubscribe rate shows you how many people have unsubscribed from one of your email marketing campaigns.&lt;/p&gt;

&lt;p&gt;Of course, your number one goal is to retain your subscribers as much as possible. To do so, you should investigate some of the possible reasons for an increase in the number of unsubscribes, such as sending emails too frequently or presenting irrelevant content.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Number of conversions
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--A6P85qac--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k186dkwnqn6ts417ag8i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A6P85qac--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k186dkwnqn6ts417ag8i.png" alt="Image description" width="800" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This email metric tells you how many people clicked on a link in your email and then took a desired action, such as making a purchase on your e-commerce website. &lt;/p&gt;

&lt;p&gt;The number of conversions, as well as your conversion rate, are key metrics you should always have your eye on since they can have a direct impact on your return on investment and your business goals.&lt;/p&gt;

&lt;p&gt;There are many ways you can improve your conversions, such as &lt;a href="https://visme.co/blog/newsletter-design/"&gt;improving your newsletter design&lt;/a&gt;, your CTAs, or your promotions. You can also try to segment your audience better, so that you only send relevant promotions or information to each person depending on their profile.&lt;/p&gt;

&lt;h2&gt;
  
  
  Track all these KPIs in a marketing report
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The tools
&lt;/h3&gt;

&lt;p&gt;In order to track all these KPIs, you can use an Excel spreadsheet (or Google Sheet) and simply copy-paste all this data every month from your different platforms, such as Mailchimp, Campaign Monitor, Hubspot, or Google Analytics. Alternatively, you could use a go-to-market platform like &lt;a href="https://www.dealfront.com/"&gt;Dealfront&lt;/a&gt; to track and collect data from multiple campaigns. You could also use &lt;a href="https://whatagraph.com/blog/articles/automated-client-reporting"&gt;an automated reporting tool&lt;/a&gt; to keep track of this data without having to fetch it yourself every month. &lt;/p&gt;

&lt;h3&gt;
  
  
  Automated reporting
&lt;/h3&gt;

&lt;p&gt;There are multiple automated &lt;a href="https://www.cumul.io/blog/state-of-saas-analytics-features-report-2023"&gt;SaaS reporting tools&lt;/a&gt; available, such as &lt;a href="https://dashthis.com/"&gt;DashThis&lt;/a&gt;, &lt;a href="https://www.zoho.com/"&gt;Zoho&lt;/a&gt;, &lt;a href="https://www.tableau.com/"&gt;Tableau&lt;/a&gt; or &lt;a href="https://dev.to**url**"&gt;Geckoboard&lt;/a&gt;; all very useful depending on your needs. &lt;/p&gt;

&lt;h3&gt;
  
  
  DashThis
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DK-Uty1J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y13j0zeeajpl76gfyue7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DK-Uty1J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y13j0zeeajpl76gfyue7.png" alt="Image description" width="800" height="291"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DashThis is an automated marketing tool for agencies and marketers. The tool is particularly useful if you want to present a good-looking report to your clients or boss. It has multiple time-saving features like preset templates, cloning options, preset widgets, and more. It is known for its ease of use and second-to-none customer service.&lt;/p&gt;

&lt;h3&gt;
  
  
  Zoho
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xIZsWrVU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6y6frzkk84vansrhnykk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xIZsWrVU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6y6frzkk84vansrhnykk.png" alt="Image description" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Zoho is a business analytics tool used to carry out in-depth analytics for different spheres of your business (sales, marketing, finance, HR, etc.). You can then present your data with different types of reports. &lt;/p&gt;

&lt;h3&gt;
  
  
  Tableau
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--H1E9qc5U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4oj2m24xjwx65cuzmacq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H1E9qc5U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4oj2m24xjwx65cuzmacq.png" alt="Image description" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tableau is a data visualisation tool that helps businesses track and analyse their data for their different industries and departments. It is very customizable and offers a lot of different options.&lt;/p&gt;

&lt;h3&gt;
  
  
  Geckoboard
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8I8XBDnO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9o1j01zpqpk39donzvc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8I8XBDnO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9o1j01zpqpk39donzvc.png" alt="Image description" width="800" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Geckoboard is a dashboard tool that helps you present your data for your team, on either a TV or monitor. It helps your team easily follow up on their performance in real-time.&lt;/p&gt;

&lt;h3&gt;
  
  
  The templates
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bOE2wVsJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c1q2equa991dd6yyr0wb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bOE2wVsJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c1q2equa991dd6yyr0wb.png" alt="Image description" width="800" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also use report templates to help you track these KPIs faster. These templates are pre-filled with the most common email marketing KPIs so you don’t have to add them all manually.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Best practices to follow
&lt;/h3&gt;

&lt;h4&gt;
  
  
  The layout
&lt;/h4&gt;

&lt;p&gt;Another important reporting tip is to make sure you present your data with some graphs and charts. This will really enable you to better understand the trends in your data. Are you going in the right direction? Is there a causality between my decrease of hard bounces and increase of open rate? It’s all a lot easier to see with clear graphs. &lt;/p&gt;

&lt;h4&gt;
  
  
  The comparisons
&lt;/h4&gt;

&lt;p&gt;You should also make sure you compare your data year-by-year as well as month-by-month, so that you take into consideration the seasonality of your data. This will help you see if, for example, your lower open rate is due to the campaign itself, the holidays, or if this seems normal for this period of the year. &lt;/p&gt;

&lt;h4&gt;
  
  
  The frequency
&lt;/h4&gt;

&lt;p&gt;You should create a monthly report for your e&lt;a href="https://mailtrap.io/blog/email-marketing-strategy/"&gt;mail marketing strategies&lt;/a&gt;. Why monthly? Because less than a month might not represent enough data to be able to see trends and make decisions based on the data. A weekly or daily report can always be used for very short term promotions that you would like to track closely.&lt;/p&gt;

&lt;p&gt;However, more than a month is a pretty long time. If you use quarterly reports, for example, you might see that your campaign has had bad results for over 2 months, without you ever knowing. By tracking your data monthly you can stop a bad campaign in its tracks, modify it, and make sure your strategies are always optimal. &lt;/p&gt;

&lt;p&gt;The same goes for a yearly report – it should only be used as a recap of all your different strategies and campaigns of the year. You can use yearly and quarterly reports to get a good overview of what worked out or not, and adjust for the next year.&lt;/p&gt;

&lt;h2&gt;
  
  
  You’re all set!
&lt;/h2&gt;

&lt;p&gt;These are the most important marketing KPIs you need to track for your email reports so that you can adjust your email marketing campaigns accordingly.  Make sure to track all this data every month, and you’ll be all set to have successful campaigns.&lt;/p&gt;

&lt;p&gt;If you need more email marketing tips, Mailtrap has a plethora of blog posts you should check out!&lt;/p&gt;

&lt;p&gt;Thank you for reading this article! Find more articles about &lt;a href="https://mailtrap.io/blog/email-marketing-reports/"&gt;email marketing reporting metrics&lt;/a&gt; in Mailtrap blog!&lt;/p&gt;

</description>
      <category>testing</category>
      <category>developers</category>
      <category>programming</category>
    </item>
    <item>
      <title>Email Click-Through Rate: What to Know and How to Boost</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 04 Jan 2024 15:18:16 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/email-click-through-rate-what-to-know-and-how-to-boost-25k</link>
      <guid>https://dev.to/nataliiapolomkina/email-click-through-rate-what-to-know-and-how-to-boost-25k</guid>
      <description>&lt;p&gt;The humble email remains a cornerstone of any marketing strategy. Tried and tested, but also improving all the time, a good subscriber list and quality content direct to these inboxes can be one of the most effective ways of driving your audience to action. To make sure you’re getting the best out of your email campaigns, you should always be tracking and comparing your own key performance indicators (KPIs) against each other, as well as against competitors and industry at large – and one of the most important of these metrics is click-through rate (CTR). In this article, we’ll explore key ways to boost your email CTR.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is email CTR and how do I calculate it?
&lt;/h2&gt;

&lt;p&gt;Let’s start at the beginning. It may seem obvious to state that click-through rate or click rate is how many people clicked a link in your email, but it’s important to understand what it is, how to calculate it, and what this actually means as far as your email performance (and later, the all important ‘how to improve it’). &lt;/p&gt;

&lt;p&gt;When prioritizing your email marketing metrics, CTR should always be in the mix – see must-haves in &lt;a href="https://mailtrap.io/blog/email-marketing-metrics/#Prioritization-of-email-marketing-metrics"&gt;this guide to email marketing KPIs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Typically, CTR will be spoken of as a percentage. To calculate it, divide the number of people who clicked at least one link in your email by the total amount of emails delivered. Then multiply this number by 100 to make your percentage. (Note that it is the total emails delivered, not the emails opened. For that, Mailtrap also has a &lt;a href="https://mailtrap.io/blog/calculate-email-open-rate/"&gt;handy guide to calculating your open rate&lt;/a&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s the average CTR?
&lt;/h2&gt;

&lt;p&gt;Now you know your rate, but what constitutes a good CTR, you may ask? It differs between industries and across devices, and it will also depend on knowing the regions you’re targeting. &lt;/p&gt;

&lt;p&gt;According to &lt;a href="https://www.campaignmonitor.com/resources/guides/email-marketing-benchmarks/"&gt;Campaign Monitor&lt;/a&gt;, the average click-through rate across all industries in 2020 was 2.6%. MailChimp turns out a similar figure, by analysing their own data – which comes from small businesses as well as established corporates – and putting the average CTR across all industries at 2.62%.&lt;/p&gt;

&lt;p&gt;Generally, both reports conclude that higher CTR belong to sectors such as government and politics as well as the broad category ‘hobbies’. Conversely, food and beverage and retail tend to come at the lower end of averages. &lt;/p&gt;

&lt;p&gt;We also know that a user’s behavior on mobile and desktop are different, and the way your audience consumes your content is an important factor in how much they engage and click. Interestingly, many reports point to a higher CTR from desktops than from mobiles. An &lt;a href="https://www.superoffice.com/blog/email-click-through-rates/#:~:text=Email%20click%20through%20rate%20is%20calculated%20by%20the%20number%20of,of%20emails%20you%20have%20sent."&gt;analysis by Super Office&lt;/a&gt; puts desktop CTR at a massive 72% of all email click-throughs, compared to 19% on mobile and just 9% on tablets. Considering this, it’s worth keeping in mind how your audience is reading your emails and planning content accordingly.&lt;/p&gt;

&lt;p&gt;Now you’ve got the background, it’s time to think about applying this to your own &lt;a href="https://mailtrap.io/blog/email-marketing/"&gt;email marketing&lt;/a&gt;. We’ll take it in steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. How should I prepare to send out a campaign?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Control your email list
&lt;/h3&gt;

&lt;p&gt;You won’t get very far without a subscriber list, so this is the first thing to get under control (or build up if you’re just starting out). For recipients that are active, try sending them friend referral offers to keep them engaged and further &lt;a href="https://wpmudev.com/project/hustle/"&gt;build your email list&lt;/a&gt;. As good practice, remember to systematically remove dormant subscribers. You may choose to give them a final reminder, but if they’re not interested, don’t hang on for the sake of numbers – it will give you inaccurate figures and pull down your CTR and open rates. &lt;/p&gt;

&lt;h3&gt;
  
  
  Perfect your opt-in offer
&lt;/h3&gt;

&lt;p&gt;What you want is a subscriber’s email address, but in return, you need to offer them something. This isn’t just about including a ‘subscribe’ &lt;a href="https://wisepops.com/blog/email-pop-up-examples"&gt;email popup&lt;/a&gt; on your landing page. An effective approach can be to offer a new-subscriber discount on a purchase, exclusive content, early booking to events – whatever works for your brand.&lt;/p&gt;

&lt;h3&gt;
  
  
  Start segmenting
&lt;/h3&gt;

&lt;p&gt;Essentially segmentation is what it says on the tin: dividing your subscribers into groups based on common characteristics. The criteria is defined by your brand’s needs, and effective segmentation will lay the foundation for personalization down the track. Start with the basics, like age, gender and geography, but over time make sure you take your segmentation beyond this. What do they like to do on weekends? Do they drive or get public transport to work? The deeper you go, the more relevant you’ll be able to make your content.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What should I check before sending?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  HTML template
&lt;/h3&gt;

&lt;p&gt;There are several key things to check in your HTML formatting – check all your links are there, check none are broken and that all sharing buttons are working. Also do a sight check for image distortion or any design formatting that’s gone rogue. Consider including a web-based version, so if anyone does have trouble viewing your email, it’s not an instant delete.&lt;/p&gt;

&lt;h3&gt;
  
  
  Content
&lt;/h3&gt;

&lt;p&gt;All the design in the world doesn’t make up for sub-par content. In fact, design should enhance already strong content, not carry something that’s just so-so. It also can’t compensate for blatant mistakes: so, proofread!&lt;/p&gt;

&lt;h3&gt;
  
  
  Deliverability
&lt;/h3&gt;

&lt;p&gt;We know that sometimes emails end up in junk folders – it’s for this reason that we talk about &lt;a href="https://mailtrap.io/blog/email-deliverability/"&gt;email deliverability&lt;/a&gt;, sometimes also called inbox placement. There are tools available on most of the popular email sending platforms, which &lt;a href="https://folderly.com/blog/email-deliverability-monitoring"&gt;monitor your email deliverability&lt;/a&gt; and give you a score based on the quality of your content, your reputation as a sender and authentications. Handily, these kinds of tools also give you tips to improve. &lt;/p&gt;

&lt;h2&gt;
  
  
  3. I’ve sent out my campaign. Now, how can I improve my email CTR?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Structure
&lt;/h3&gt;

&lt;p&gt;It’s important to have good content, but it’s equally important that your content is on show in the best way possible. Make your emails skim-able, but engaging. Judge where to put detail, and use headings and bullet points cleverly: lead your readers to follow your links.&lt;/p&gt;

&lt;h3&gt;
  
  
  Subject line
&lt;/h3&gt;

&lt;p&gt;Your &lt;a href="https://www.hellobar.com/blog/catchy-email-subject-lines/"&gt;subject line&lt;/a&gt; matters. It needs to communicate what your email contains as well as why your recipient is going to get value from it. It can be tricky to toe the line between clear and interesting, without overpromising, but the best-performing emails do it well. You could also try asking a quippy question. For example: ‘Long day? We have three before-bed products that can help’. &lt;/p&gt;

&lt;p&gt;And lastly, test your email subject lines! Most email marketing tools will allow you to split test your emails – in other words, send two versions out and compare which subject line results in more opens, more click-throughs and less unsubscribes. You’ll get better and better at knowing what resonates with your audience as a result.&lt;/p&gt;

&lt;h3&gt;
  
  
  Personalization
&lt;/h3&gt;

&lt;p&gt;Email personalization is something that started and never stopped, and the reason for that is that it works. Why? Personalized marketing stands out more and personalized emails are more likely to generate click-throughs. Once you have your list segmentation set up (as discussed earlier), it’s easy to tweak messaging for your different groups and make sure you’re catching their eyes. Personalized emails will definitely increase your chances to get a higher &lt;a href="https://attrock.com/blog/sales-conversion-rate/"&gt;conversion rate&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Preview text
&lt;/h3&gt;

&lt;p&gt;An oft overlooked feature, the preview text (sometimes referred to as pre-header text) plays a key part in getting your email opened. After seeing the subject line and the sender, this is the next thing your email recipient sees. It should support your subject line (not repeat it) and is also a good way to include some additional keywords, a call to action or expand on personalization.&lt;/p&gt;

&lt;h3&gt;
  
  
  Timing
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.getresponse.com/resources/reports/email-marketing-benchmarks#number-of-newsletters-per-week"&gt;Recent data&lt;/a&gt; suggests sending one email a week achieves the highest CTR on average. This is also the most popular approach – with 49% of the businesses analysed in this report opting for one newsletter a week. Once you’ve been tracking trends on your own emails, start looking for the times of day when the CTR is high compared to open rates, rather than necessarily when both are high (this will separate your active customers from idle readers). &lt;/p&gt;

&lt;h3&gt;
  
  
  Design
&lt;/h3&gt;

&lt;p&gt;Your email campaigns shouldn’t feel separate from your other marketing collateral, so try to keep any visual elements unique and on-brand. For inspiration, look at which &lt;a href="https://envato.com/blog/email-marketing-trends/"&gt;trends are cropping up in email marketing campaigns&lt;/a&gt;. It’s also become a must-have to consider accessibility so, as discussed earlier, make sure your email template is responsive for different devices as well as for both plain text formatting and HTML.&lt;/p&gt;

&lt;h3&gt;
  
  
  CTA placement
&lt;/h3&gt;

&lt;p&gt;Your calls to action are where you’re going to drive your CTR and ultimately convert your audience – whether the aim is for achieving specific &lt;a href="https://www.kontentino.com/blog/social-media-kpis/"&gt;social media KPIs&lt;/a&gt;, such as number of followers, getting in touch with your brand, or buying something. These should be visible, intriguing, and clearly communicate what the reader is going to get by clicking. Again, try different approaches and compare which seem to yield better results – over time, you’ll know exactly what works. You can track all of your advertising efforts with a &lt;a href="http://voluum.com/"&gt;tool like Voluum&lt;/a&gt; and later on see what generates more revenue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;And that’s it. We know, there’s plenty to consider when it comes to perfecting your email CTR game. But if you plan it well, keep track of your findings, and keep on with incremental improvements, you’ll start to see results.&lt;/p&gt;

&lt;p&gt;Thank you for reading this article! Read more about &lt;a href="https://mailtrap.io/blog/email-click-through-rate/"&gt;email click through rate&lt;/a&gt; in Mailtrap blog!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Implement DMARC Records</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Wed, 06 Dec 2023 13:10:37 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/how-to-implement-dmarc-records-4gl6</link>
      <guid>https://dev.to/nataliiapolomkina/how-to-implement-dmarc-records-4gl6</guid>
      <description>&lt;p&gt;DMARC is one of the key methods for protecting your emails from spoofing. Yet, &lt;a href="https://techcrunch.com/2018/11/01/half-fortune-500-dmarc-email-security/"&gt;only half of Fortune 500 companies have implemented it so far&lt;/a&gt;. Is it because the setup is difficult? Absolutely not. Setting up DMARC is really easy and won’t take more than 15 minutes. Learn how to do it with our guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  DMARC, DKIM, and SPF – The Basics
&lt;/h2&gt;

&lt;p&gt;We’ve covered extensively various authentication methods on our blog. Let’s quickly revamp the most important details about each.&lt;/p&gt;

&lt;p&gt;SPF (Sender Policy Framework) is used to let the receiving servers know which IP addresses are allowed to send emails on your behalf. When an email is received, a quick verification is run. If an unrecognized IP was used, an email is likely to be discarded. Read a lot more about it &lt;a href="https://mailtrap.io/blog/spf-records-explained/"&gt;in our SPF article&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;DKIM (Domain Keys Identified Email), on the other hand, is a digital signature that’s attached to outgoing emails. It features the headers and/or body of a message, encrypted with an individual key. The receiving server can then recreate these values and quickly detect if anything was changed en route. If that was the case, a message is also likely to never arrive in the receiver’s inbox. We have it covered too in &lt;a href="https://mailtrap.io/blog/dkim/"&gt;our DKIM article&lt;/a&gt;. &lt;a href="https://mailtrap.io/blog/create-dkim-tutorial/"&gt;Here’s how to set one up&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Finally, DMARC (Domain-based Message Authentication Reporting and Conformance) works on top of the two other methods (at least one of them needs to be set up for DMARC to work). On top of DKIM/SPF, DMARC will perform an alignment test to add another layer of security. Finally, it will instruct a receiving server on what to do if either of the checks fail. More about this below, but if you’re anxious to learn a lot more about this technology, we recommend our ‘&lt;a href="https://mailtrap.io/blog/dmarc-explained/"&gt;What is DMARC&lt;/a&gt;’ article as a good source of knowledge.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/zT1wMIz8_IU"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Implement DMARC Records
&lt;/h2&gt;

&lt;p&gt;Once you know the structure of DMARC, setting it up is as easy as adding several lines of text to your DNS Records. If you, however, want to make sure it really works from the get-go, we suggest running a few additional checks. Otherwise, you may accidentally instruct the servers to get rid of your perfectly legitimate emails.&lt;/p&gt;

&lt;p&gt;The whole process comes down to the following steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Validating if SPF/DKIM are set up and domains aligned&lt;/li&gt;
&lt;li&gt;Generating a DMARC record and specifying its settings&lt;/li&gt;
&lt;li&gt;Adding it to your domain’s DNS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s talk about each of these steps in more detail.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verify if DKIM and/or SPF are set up properly
&lt;/h3&gt;

&lt;p&gt;As mentioned earlier, having either of them is compulsory for DMARC to work. But having one that returns negative results for legitimate emails will also do no good. The DMARC test will fail automatically if SPF or DKIM fails.&lt;/p&gt;

&lt;p&gt;In the respective articles mentioned above, we’ve mentioned various tools for validating either method. Check them out before you proceed further.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check domain alignment
&lt;/h3&gt;

&lt;p&gt;DMARC forces receive servers to perform a domain alignment test on top of the traditional SPF/DKIM validations. That’s why it’s imperative to have everything in place to avoid unpleasant surprises.&lt;/p&gt;

&lt;p&gt;If you have only SPF set up (don’t forget to &lt;a href="https://mailtrap.io/blog/multiple-spf-records/"&gt;avoid multiple SPF records&lt;/a&gt;), check if the following two match:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;‘Envelope from’ address – the address emails are sent from&lt;/li&gt;
&lt;li&gt;‘Return-path’ address – the address emails will be directed to if a recipient responds to an email&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you rely only on DKIM, check if the following two match:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;‘Envelope from’ address – the address emails are sent from&lt;/li&gt;
&lt;li&gt;‘d’ tag of your DKIM record&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you use both methods (and rightly so!), perform both checks, of course. &lt;/p&gt;

&lt;p&gt;Ideally, all the domains or subdomains should precisely match. In a DMARC record, you’ll be able to choose a more relaxed method, aptly named ‘relaxed.’ This way, emails sent from e.g. mailtrap.io would be aligned with those sent from mailtrap.io/blog (or any other mailtrap.io subdomain).&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose an email account for receiving DKIM records
&lt;/h3&gt;

&lt;p&gt;A great thing about DMARC is that, when set up, your server starts sending you daily reports of how your emails performed (separate aggregate and forensic reports). This way, you can quickly spot any abnormalities and improve your performance with the use of data. It is pretty handy especially if you set up DMARC for the first time and want to know if you did it right.&lt;/p&gt;

&lt;p&gt;You can pick virtually any email address here. It may even be better to use a different one than the “return-path,” as your inbox is likely to become flooded with these reports.&lt;/p&gt;

&lt;p&gt;Keep in mind that reports are sent in a raw, hard to read format. You may want to use tools like &lt;a href="https://dmarcian.com/xml-to-human-converter/"&gt;Dmarcian&lt;/a&gt; or &lt;a href="https://mxtoolbox.com/DmarcReportAnalyzer.aspx"&gt;MXToolbox&lt;/a&gt; to get the most out of the data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose how to treat emails that fail a DMARC check
&lt;/h3&gt;

&lt;p&gt;DMARC gives you the power to influence how your emails are treated if they fail a check. There are three possible scenarios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reject – emails are discarded and won’t be delivered (&lt;a href="https://mailtrap.io/blog/soft-vs-hard-bounce/"&gt;hard bounce&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Quarantine – emails will be sent to a spam folder, likely never to be retrieved by the recipient&lt;/li&gt;
&lt;li&gt;None – even if a check fails, nothing will be done&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The ‘none’ option isn’t as useless as it might sound at first. Although it won’t prevent you from spoofing if other methods fail, it’s great in the first days of using DMARC. You can set it up and have your emails delivered as usual, but at the same time keep receiving reports on DMARC performance. When you’re confident that legitimate emails go through, you can change the DMARC settings to different ones.&lt;/p&gt;

&lt;p&gt;Please be aware that the rules you pick here are only suggestions sent to receiving servers and by no means do they guarantee the desired action will be taken. If DMARC fails, emails can still be delivered even if you ordered them to land in spam. Also, the other way around.&lt;/p&gt;

&lt;p&gt;You’ll be able to add your pick in the next step.&lt;/p&gt;

&lt;h3&gt;
  
  
  Generate DMARC record
&lt;/h3&gt;

&lt;p&gt;Now, let’s finally generate a DMARC record. &lt;a href="https://dmarc.org/resources/deployment-tools/"&gt;Dmarc.org recommends a number of resources&lt;/a&gt; for this task. While they differ a bit in terms of user experience, each will generate a correct DMARC for you assuming all the previous steps have worked out.&lt;/p&gt;

&lt;p&gt;There are several tags you need to use in a record and a number of optional ones. Once again, refer to the &lt;a href="https://mailtrap.io/blog/dmarc-explained/"&gt;DMARC article&lt;/a&gt; we mentioned earlier for the details. Note that the ‘p’ tag (as in ‘policy’) will be a direct representation of the previous step.&lt;/p&gt;

&lt;p&gt;An example of the DMARC record will look as follows:&lt;/p&gt;

&lt;p&gt;v=DMARC1; p=reject; rua=mailto:&lt;a href="mailto:piotr@mailtrap.io"&gt;piotr@mailtrap.io&lt;/a&gt;,mailto:&lt;a href="mailto:ann@mailtrap.io"&gt;ann@mailtrap.io&lt;/a&gt;;&lt;br&gt;
ruf=mailto:&lt;a href="mailto:steve@mailtrap.io"&gt;steve@mailtrap.io&lt;/a&gt;; fo=1;&lt;/p&gt;

&lt;p&gt;This rule indicates that emails that fail a &lt;a href="https://easydmarc.com/tools/dmarc-lookup"&gt;DMARC check&lt;/a&gt; should be rejected. Aggregate reports should be sent to me and my colleague Ann while Steve from another team should handle forensics reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  Add DMARC record to your domain’s DNS
&lt;/h3&gt;

&lt;p&gt;Once you have your record, you can go ahead and add it as a DNS Record. You may be able to do it on your own or, in some cases, with the help of your hosting provider.&lt;/p&gt;

&lt;p&gt;In the domain registrar, you need to add the newly-created DMARC as a TXT record. We won’t go through any details here as the process differs for each provider. If you did everything correctly, though, you should receive your first reports within the next 24 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;As you can see, the process of adding a DMARC record is far from difficult. We hope you found it useful but always welcome any feedback – let us know your thoughts at &lt;a href="//contact@mailtrap.io"&gt;contact@mailtrap.io&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Before you send any large volume of emails, be sure to check out Mailtrap. It’s a tool for testing emails before they’re sent to real users. You can preview them, get tips on how to improve them, and monitor if the right emails are sent to the right people. You can try &lt;a href="https://mailtrap.io/"&gt;Mailtrap&lt;/a&gt; for free.&lt;/p&gt;

&lt;p&gt;Thank you for reading this article! Follow Mailtrap blog if you want to read more about how to &lt;a href="https://mailtrap.io/blog/dmarc-setup/#Check-domain-alignment"&gt;set dmarc record&lt;/a&gt;!&lt;/p&gt;

</description>
      <category>testing</category>
      <category>developers</category>
    </item>
    <item>
      <title>How to Implement DMARC Records</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Wed, 06 Dec 2023 13:10:37 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/how-to-implement-dmarc-records-md3</link>
      <guid>https://dev.to/nataliiapolomkina/how-to-implement-dmarc-records-md3</guid>
      <description>&lt;p&gt;DMARC is one of the key methods for protecting your emails from spoofing. Yet, &lt;a href="https://techcrunch.com/2018/11/01/half-fortune-500-dmarc-email-security/"&gt;only half of Fortune 500 companies have implemented it so far&lt;/a&gt;. Is it because the setup is difficult? Absolutely not. Setting up DMARC is really easy and won’t take more than 15 minutes. Learn how to do it with our guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  DMARC, DKIM, and SPF – The Basics
&lt;/h2&gt;

&lt;p&gt;We’ve covered extensively various authentication methods on our blog. Let’s quickly revamp the most important details about each.&lt;/p&gt;

&lt;p&gt;SPF (Sender Policy Framework) is used to let the receiving servers know which IP addresses are allowed to send emails on your behalf. When an email is received, a quick verification is run. If an unrecognized IP was used, an email is likely to be discarded. Read a lot more about it &lt;a href="https://mailtrap.io/blog/spf-records-explained/"&gt;in our SPF article&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;DKIM (Domain Keys Identified Email), on the other hand, is a digital signature that’s attached to outgoing emails. It features the headers and/or body of a message, encrypted with an individual key. The receiving server can then recreate these values and quickly detect if anything was changed en route. If that was the case, a message is also likely to never arrive in the receiver’s inbox. We have it covered too in &lt;a href="https://mailtrap.io/blog/dkim/"&gt;our DKIM article&lt;/a&gt;. &lt;a href="https://mailtrap.io/blog/create-dkim-tutorial/"&gt;Here’s how to set one up&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Finally, DMARC (Domain-based Message Authentication Reporting and Conformance) works on top of the two other methods (at least one of them needs to be set up for DMARC to work). On top of DKIM/SPF, DMARC will perform an alignment test to add another layer of security. Finally, it will instruct a receiving server on what to do if either of the checks fail. More about this below, but if you’re anxious to learn a lot more about this technology, we recommend our ‘&lt;a href="https://mailtrap.io/blog/dmarc-explained/"&gt;What is DMARC&lt;/a&gt;’ article as a good source of knowledge.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/zT1wMIz8_IU"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Implement DMARC Records
&lt;/h2&gt;

&lt;p&gt;Once you know the structure of DMARC, setting it up is as easy as adding several lines of text to your DNS Records. If you, however, want to make sure it really works from the get-go, we suggest running a few additional checks. Otherwise, you may accidentally instruct the servers to get rid of your perfectly legitimate emails.&lt;/p&gt;

&lt;p&gt;The whole process comes down to the following steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Validating if SPF/DKIM are set up and domains aligned&lt;/li&gt;
&lt;li&gt;Generating a DMARC record and specifying its settings&lt;/li&gt;
&lt;li&gt;Adding it to your domain’s DNS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s talk about each of these steps in more detail.&lt;/p&gt;

&lt;h3&gt;
  
  
  Verify if DKIM and/or SPF are set up properly
&lt;/h3&gt;

&lt;p&gt;As mentioned earlier, having either of them is compulsory for DMARC to work. But having one that returns negative results for legitimate emails will also do no good. The DMARC test will fail automatically if SPF or DKIM fails.&lt;/p&gt;

&lt;p&gt;In the respective articles mentioned above, we’ve mentioned various tools for validating either method. Check them out before you proceed further.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check domain alignment
&lt;/h3&gt;

&lt;p&gt;DMARC forces receive servers to perform a domain alignment test on top of the traditional SPF/DKIM validations. That’s why it’s imperative to have everything in place to avoid unpleasant surprises.&lt;/p&gt;

&lt;p&gt;If you have only SPF set up (don’t forget to &lt;a href="https://mailtrap.io/blog/multiple-spf-records/"&gt;avoid multiple SPF records&lt;/a&gt;), check if the following two match:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;‘Envelope from’ address – the address emails are sent from&lt;/li&gt;
&lt;li&gt;‘Return-path’ address – the address emails will be directed to if a recipient responds to an email&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you rely only on DKIM, check if the following two match:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;‘Envelope from’ address – the address emails are sent from&lt;/li&gt;
&lt;li&gt;‘d’ tag of your DKIM record&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you use both methods (and rightly so!), perform both checks, of course. &lt;/p&gt;

&lt;p&gt;Ideally, all the domains or subdomains should precisely match. In a DMARC record, you’ll be able to choose a more relaxed method, aptly named ‘relaxed.’ This way, emails sent from e.g. mailtrap.io would be aligned with those sent from mailtrap.io/blog (or any other mailtrap.io subdomain).&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose an email account for receiving DKIM records
&lt;/h3&gt;

&lt;p&gt;A great thing about DMARC is that, when set up, your server starts sending you daily reports of how your emails performed (separate aggregate and forensic reports). This way, you can quickly spot any abnormalities and improve your performance with the use of data. It is pretty handy especially if you set up DMARC for the first time and want to know if you did it right.&lt;/p&gt;

&lt;p&gt;You can pick virtually any email address here. It may even be better to use a different one than the “return-path,” as your inbox is likely to become flooded with these reports.&lt;/p&gt;

&lt;p&gt;Keep in mind that reports are sent in a raw, hard to read format. You may want to use tools like &lt;a href="https://dmarcian.com/xml-to-human-converter/"&gt;Dmarcian&lt;/a&gt; or &lt;a href="https://mxtoolbox.com/DmarcReportAnalyzer.aspx"&gt;MXToolbox&lt;/a&gt; to get the most out of the data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose how to treat emails that fail a DMARC check
&lt;/h3&gt;

&lt;p&gt;DMARC gives you the power to influence how your emails are treated if they fail a check. There are three possible scenarios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reject – emails are discarded and won’t be delivered (&lt;a href="https://mailtrap.io/blog/soft-vs-hard-bounce/"&gt;hard bounce&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Quarantine – emails will be sent to a spam folder, likely never to be retrieved by the recipient&lt;/li&gt;
&lt;li&gt;None – even if a check fails, nothing will be done&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The ‘none’ option isn’t as useless as it might sound at first. Although it won’t prevent you from spoofing if other methods fail, it’s great in the first days of using DMARC. You can set it up and have your emails delivered as usual, but at the same time keep receiving reports on DMARC performance. When you’re confident that legitimate emails go through, you can change the DMARC settings to different ones.&lt;/p&gt;

&lt;p&gt;Please be aware that the rules you pick here are only suggestions sent to receiving servers and by no means do they guarantee the desired action will be taken. If DMARC fails, emails can still be delivered even if you ordered them to land in spam. Also, the other way around.&lt;/p&gt;

&lt;p&gt;You’ll be able to add your pick in the next step.&lt;/p&gt;

&lt;h3&gt;
  
  
  Generate DMARC record
&lt;/h3&gt;

&lt;p&gt;Now, let’s finally generate a DMARC record. &lt;a href="https://dmarc.org/resources/deployment-tools/"&gt;Dmarc.org recommends a number of resources&lt;/a&gt; for this task. While they differ a bit in terms of user experience, each will generate a correct DMARC for you assuming all the previous steps have worked out.&lt;/p&gt;

&lt;p&gt;There are several tags you need to use in a record and a number of optional ones. Once again, refer to the &lt;a href="https://mailtrap.io/blog/dmarc-explained/"&gt;DMARC article&lt;/a&gt; we mentioned earlier for the details. Note that the ‘p’ tag (as in ‘policy’) will be a direct representation of the previous step.&lt;/p&gt;

&lt;p&gt;An example of the DMARC record will look as follows:&lt;/p&gt;

&lt;p&gt;v=DMARC1; p=reject; rua=mailto:&lt;a href="mailto:piotr@mailtrap.io"&gt;piotr@mailtrap.io&lt;/a&gt;,mailto:&lt;a href="mailto:ann@mailtrap.io"&gt;ann@mailtrap.io&lt;/a&gt;;&lt;br&gt;
ruf=mailto:&lt;a href="mailto:steve@mailtrap.io"&gt;steve@mailtrap.io&lt;/a&gt;; fo=1;&lt;/p&gt;

&lt;p&gt;This rule indicates that emails that fail a &lt;a href="https://easydmarc.com/tools/dmarc-lookup"&gt;DMARC check&lt;/a&gt; should be rejected. Aggregate reports should be sent to me and my colleague Ann while Steve from another team should handle forensics reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  Add DMARC record to your domain’s DNS
&lt;/h3&gt;

&lt;p&gt;Once you have your record, you can go ahead and add it as a DNS Record. You may be able to do it on your own or, in some cases, with the help of your hosting provider.&lt;/p&gt;

&lt;p&gt;In the domain registrar, you need to add the newly-created DMARC as a TXT record. We won’t go through any details here as the process differs for each provider. If you did everything correctly, though, you should receive your first reports within the next 24 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;As you can see, the process of adding a DMARC record is far from difficult. We hope you found it useful but always welcome any feedback – let us know your thoughts at &lt;a href="//contact@mailtrap.io"&gt;contact@mailtrap.io&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Before you send any large volume of emails, be sure to check out Mailtrap. It’s a tool for testing emails before they’re sent to real users. You can preview them, get tips on how to improve them, and monitor if the right emails are sent to the right people. You can try &lt;a href="https://mailtrap.io/"&gt;Mailtrap&lt;/a&gt; for free.&lt;/p&gt;

&lt;p&gt;Thank you for reading this article! Follow Mailtrap blog if you want to read more about how to &lt;a href="https://mailtrap.io/blog/dmarc-setup/#Check-domain-alignment"&gt;set dmarc record&lt;/a&gt;!&lt;/p&gt;

</description>
      <category>testing</category>
      <category>developers</category>
    </item>
    <item>
      <title>What is Email Marketing: In-Depth Guide</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 23 Feb 2023 19:57:31 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/what-is-email-marketing-in-depth-guide-3591</link>
      <guid>https://dev.to/nataliiapolomkina/what-is-email-marketing-in-depth-guide-3591</guid>
      <description>&lt;p&gt;Would you believe that the first mass email marketing campaign was sent in 1978? Yes, 54 years ago, Gary Thuerk, the man dubbed the Father of Spam, sent a few hundred emails and got the ball rolling for commercial email. Since then, this has become one of the most effective and popular tools in marketing.&lt;/p&gt;

&lt;p&gt;But with great power comes great confusion. &lt;/p&gt;

&lt;p&gt;Many of you reading this article probably find yourself in a situation where you have an email marketing list with tons of subscribers but no idea what type of marketing emails to send them or even what options you have.&lt;/p&gt;

&lt;p&gt;To help clear up this confusion and leverage the great benefits of email marketing, we’ll go on a deep dive into all the ins and outs of this direct marketing method.&lt;/p&gt;

&lt;p&gt;So, let’s dive in!&lt;/p&gt;

&lt;h2&gt;
  
  
  What is email marketing?
&lt;/h2&gt;

&lt;p&gt;In layman’s terms, email marketing is a digital marketing method that uses a combination of email as a communication channel and promotional or informational content to advertise old and new products/services to past customers, existing customers, and potential customers. It’s also an irreplaceable asset in situations where a company needs to share a general message related to a controversy, market/industry event, and similar.&lt;/p&gt;

&lt;p&gt;What is an email marketing campaign?&lt;br&gt;
The phrase “email marketing campaign” gets thrown around quite a lot, but many don’t know the true definition behind it, which, simply put, is “a sequence of individual email messages (although it can be a one-off send, too) sent over a period of time to multiple recipients”.  &lt;/p&gt;

&lt;p&gt;A campaign has to be well-timed and well-planned, so it arrives at the best moment and delivers valuable content and/or relevant offers (more on that in the best practices section). And in the case of campaigns consisting of a series of emails, staying consistent with the design and messaging is also very important.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5 examples of companies with great email marketing campaigns&lt;/strong&gt;&lt;br&gt;
Whether an email marketing campaign will be seen as great largely depends on who is sending it, its target audience, and its purpose. In other words, a campaign that works great for one business might work terribly for another.&lt;/p&gt;

&lt;p&gt;Still, some businesses execute their campaigns so well that showing them at least as examples is a must. And that is exactly what we are going to do now!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bonobos&lt;/strong&gt;&lt;br&gt;
Bonobos, a menswear retailer, nails simple emails that still engage the audience. How? With clear call-to-action buttons (CTAs)!&lt;/p&gt;

&lt;p&gt;Its emails have a clean structure as well as a simple copy that comes with a dash of playfulness, as seen in the example below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rdIeFeMX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uvyz9pdfvb30m3oy5y53.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rdIeFeMX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uvyz9pdfvb30m3oy5y53.jpeg" alt="Bonobos" width="880" height="1476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What’s more, Bonobos tailors (no pun intended) its emails for and only for its audience – young male professionals – which makes them pretty effective.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BuzzFeed&lt;/strong&gt;&lt;br&gt;
This one probably doesn’t come as a surprise because what would a marketing article be without mentioning the company that has mastered the craft, BuzzFeed?&lt;/p&gt;

&lt;p&gt;In its email marketing campaigns, BuzzFeed puts a lot of focus on the email subject lines and preview texts, which is pretty obvious looking at this inbox. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lFViIXK1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c8pdyfyx3fmiefrve1eg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lFViIXK1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c8pdyfyx3fmiefrve1eg.png" alt="gmail inbox" width="880" height="118"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The subject lines and preview texts it uses are textbook examples of engaging, and this approach also transfers to the content within their emails.&lt;/p&gt;

&lt;p&gt;Usually, a BuzzFeed email will consist of eye-catching images, engaging headings and descriptions, as well as CTAs. The goal of such emails is essentially to gain the attention of the reader while making them want to visit the BuzzFeed website for the full content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NzUIFrXi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sfye4i2vdr1ue66oct0h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NzUIFrXi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sfye4i2vdr1ue66oct0h.png" alt="BuzzFeed" width="834" height="1822"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another aspect of email marketing that BuzzFeed made a smart decision on is subscriptions,  where it allows people to choose which campaigns they want to subscribe to while informing them of the type of content and frequency of the campaign emails. Talk about personalization!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V6Oo9UA8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2itqa3uf09in1iffnyw5.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V6Oo9UA8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2itqa3uf09in1iffnyw5.jpeg" alt="BuzzFeed 2" width="880" height="466"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Uber&lt;/strong&gt;&lt;br&gt;
Simple is the best word to describe Uber’s email marketing campaigns (and its service :)).&lt;/p&gt;

&lt;p&gt;Uber’s emails, in most cases, come with a custom design, short yet engaging text highlighting Uber benefits, and a strong CTA.&lt;/p&gt;

&lt;p&gt;The headings and CTAs used are very straight-to-the point which is great for people just skimming the content.&lt;/p&gt;

&lt;p&gt;What’s more, the emails are highly relevant to the recipient as they are meant to serve as notifications about a new extension of the service or promotion.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xOeEFawi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/443knlmjf3v1m0m5tnac.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xOeEFawi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/443knlmjf3v1m0m5tnac.jpeg" alt="Uber" width="880" height="1726"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From the two examples above, you can see the consistency in Uber’s emails when it comes to style – a style that is also used in their mobile app design. This is worth noting, as maintaining consistency across campaign emails as well as marketing channels is a great practice. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Airbnb&lt;/strong&gt;&lt;br&gt;
Airbnb uses its emails to encourage recipients to interact and take action while maintaining a friendly and inviting tone by featuring some of the best homes Airbnb has to offer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--navaikEa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qw58aacx0budxprxe27.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--navaikEa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qw58aacx0budxprxe27.png" alt="Airbnb" width="762" height="1526"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The company is also very clever with using the data that website visitors provide it with. So, for instance, if you used Airbnb to look for accommodation in a specific city but didn’t complete the booking, the next email you receive from them will most likely be related to the destination and the Airbnbs located there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Netflix&lt;/strong&gt;&lt;br&gt;
Taking an approach similar to Airbnb’s, Netflix uses a subscriber’s watch history to create emails featuring shows/movies the subscriber is/might be interested in.&lt;/p&gt;

&lt;p&gt;In terms of design, Netflix takes advantage of the visuals related to the content you can stream on its website and sticks to its signature black and red colorway, thus giving recipients the sense as if they are scrolling through the streaming platform.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cX1SGdc3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/itw3j9kb8d0wofr135vb.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cX1SGdc3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/itw3j9kb8d0wofr135vb.jpeg" alt="Image description" width="880" height="1344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But it’s worth pointing out that you won’t find a lot of copy in Netflix’s emails, as it relies on letting the visuals communicate – a smart way to get recipients to visit the Netflix website and learn more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advantages of email marketing
&lt;/h2&gt;

&lt;p&gt;You’ve read the definitions and seen the examples, but you’re still not sold on the idea of doing email marketing or putting more focus on it than usual? In that case, reading the list of advantages below might help you make a decision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It’s cost-effective&lt;/strong&gt;&lt;br&gt;
Compared to other forms of marketing, the cost of email marketing is much lower. How so? Well, a basic email marketing campaign can be created with just an email template, some copy, and images (original or stock). Plus, the whole creation process can be completed by one person if they happen to be a decent copywriter who knows their way around email marketing software tools.&lt;/p&gt;

&lt;p&gt;So, if you’re tight on budget but still want to market your business, then email could just be your best and cheapest bet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It allows for personalization&lt;/strong&gt;&lt;br&gt;
Personalized messages are something that can’t be used in all types of marketing, but in email marketing, they are almost a standard. &lt;/p&gt;

&lt;p&gt;With personalization, your audience gets messages containing targeted content instead of something generic and not very engaging. And in case you are unfamiliar with what personalized emails look like, it can be something as minor as including the recipient’s name in the email greeting or as thorough as including details from the recipient’s interaction with your website (search history, purchased products/services, and so on) in the subject line, preview texts, copy, and visuals. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It can drive sales&lt;/strong&gt;&lt;br&gt;
Email marketing campaigns that feature your products/services, offers, and promotions can influence the purchasing decisions of the recipients and, thus, your sales. On top of that, if you are using personalization, you can send emails to people who abandoned their shopping cart, encouraging them to come back and finalize the purchase.  &lt;/p&gt;

&lt;p&gt;All in all, if used correctly, email marketing can be very effective at every stage of the sales funnel, so make sure to start building your database of old and new customers as well as prospects in time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Its success is easily measurable&lt;/strong&gt; &lt;br&gt;
Measuring the success of campaigns is quite easy in email marketing, thanks to the built-in analytics provided by most email marketing platforms. Through these analytics, you can see the open rate, bounce rate, conversion rate, number of unsubscriptions that occurred after the email was delivered, number of clicks the links/CTAs within an email received, and much more.&lt;/p&gt;

&lt;p&gt;Having this type of information at hand will enable you to see where you went wrong in your campaigns and also to test different variations of the same campaign to see which performs better.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It has a high ROI&lt;/strong&gt;&lt;br&gt;
According to Oberlo, email marketing has the highest return on investment (ROI) among marketing channels- $40 for every dollar spent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9WQAqloz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ck7xf2drkyhpea6tu1mv.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9WQAqloz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ck7xf2drkyhpea6tu1mv.jpeg" alt="oberlo" width="880" height="558"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add to that the fact that email marketing revenue is projected to hit 11 billion by the end of 2023, and you can clear any doubts about whether a good email marketing strategy will make you money.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--orZ7wshq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1861meetx75j0xfxws13.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--orZ7wshq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1861meetx75j0xfxws13.png" alt="statista" width="880" height="654"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It generates traffic for your website&lt;/strong&gt;&lt;br&gt;
Great content and offers on your website aren’t very effective if the website has no visitors. With email marketing, you can significantly increase how much traffic a website receives by sending emails containing links to fresh as well as evergreen content and new offers.&lt;/p&gt;

&lt;p&gt;Of course, it’s a must to format these emails well and include enticing CTAs. This way, the recipients will be encouraged to actually visit your website and not just stick to reading the email.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: It’s important to highlight that the above holds true for businesses that have a pretty large email subscriber list. However, for the majority of businesses that don’t, garnering website traffic through email marketing won’t come as easily, and they will first have to work on building their email subscriber lists with the help of their website and using other means.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It allows you to reach an already-engaged audience&lt;/strong&gt;&lt;br&gt;
Unlike other marketing channels, the messages sent through email marketing are (in most cases) welcomed by the recipients as they have willingly entered their email address into a signup form and thus subscribed to a business’s email contact list. &lt;/p&gt;

&lt;p&gt;In other words, with email marketing, businesses target people who have expressed interest in their products/services – an approach that results in more campaign effectiveness and higher conversion rates.&lt;/p&gt;

&lt;p&gt;Also, as many businesses segment their email lists and send different messages to different segments, they end up delivering relevant content to an already-engaged audience and thus build rapport as well as trust. &lt;/p&gt;

&lt;h2&gt;
  
  
  Disadvantages of email marketing
&lt;/h2&gt;

&lt;p&gt;Quite an impressive list of benefits we covered above, right? Well, now that you are aware of them, you should also be aware of the disadvantages that come with email marketing. And those disadvantages include:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dealing with high competition&lt;/strong&gt;&lt;br&gt;
Due to its massive popularity, email marketing is a highly competitive field, with businesses often fighting to reach and engage the same people. And even if they are not your direct competitors, big businesses with recognizable domains that have mastered the art of email marketing will likely end up in the same inboxes as you, making your emails almost unnoticeable unless you find ways to stand out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Adhering to spam laws&lt;/strong&gt;&lt;br&gt;
Spam laws are, without a doubt, a necessity, but they can also be somewhat of an annoyance when it comes to adhering to them in terms of email marketing. &lt;/p&gt;

&lt;p&gt;Most parts of the world have imposed strict spam laws that are not entirely the same, meaning you have to be aware of all of them in all the countries your email subscribers reside in; otherwise, you might find yourself unknowingly breaking a few and getting banned or fined heavily.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Getting sent to the spam folder&lt;/strong&gt;&lt;br&gt;
Although the word spam refers to all irrelevant or unsolicited messages sent over the internet, it is mostly associated with email nowadays.&lt;/p&gt;

&lt;p&gt;Your marketing emails could end up being &lt;a href="https://mailtrap.io/blog/avoid-spam-filters/"&gt;marked as spam&lt;/a&gt; for a few reasons, the two most common being:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sending emails very frequently or not sending emails that are relevant &lt;/li&gt;
&lt;li&gt;Triggering spam filters used by email clients &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, when sending out your emails, keep in mind that if you raise any red flags with recipients or email clients, chances are high that they’ll see you as nothing more than a spammer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Having to adjust your email design to different screen sizes and email clients&lt;/strong&gt;&lt;br&gt;
Subscribers of your email list are definitely not all going to be users of the same device or the same email client, meaning that your email design might end up being displayed and rendered in all kinds of ways. &lt;/p&gt;

&lt;p&gt;Unfortunately, unresponsiveness and poor rendering are not only an eyesore; they also have a poor effect on clickthrough rate (CTR), conversion rate, and other email marketing success factors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Burning out your email subscriber list&lt;/strong&gt;&lt;br&gt;
Launching email campaigns that are not well-thought-out one after the other could cost you one of your most valuable assets – your email subscriber list. &lt;/p&gt;

&lt;p&gt;How? Well, as one would assume, poor email marketing campaigns will irritate the recipients. And since these recipients have a readily available unsubscribe button in each email, as it’s a requirement in most countries, many might choose to simply click the button.&lt;/p&gt;

&lt;p&gt;Over time, as more unsubscriptions happen, your email subscriber list could shrink significantly, causing the hard work you put into building it to go to waste and your emails to reach a much smaller audience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dealing with size issues&lt;/strong&gt; &lt;br&gt;
When using email, you are limited in the amount of information you can include in one message due to imposed size limits. Also, even if you are within the allowed size limit, your email could take a very long time to load if you include a lot of images or attachments. &lt;/p&gt;

&lt;p&gt;This slow loading time could lead to frustration and overall disinterest in your emails by recipients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Most important email marketing success factors
&lt;/h2&gt;

&lt;p&gt;If you are a newbie or this article is your introduction to email marketing, by now, you might have the sense that terms like ROI, CTR, conversion rate, and open rate are something you should be well familiar with. And you would be completely right! &lt;/p&gt;

&lt;p&gt;These email marketing success factors are something you need to closely monitor to see how well your campaign and email marketing strategy, in general, are performing. And now, we’ll go over what each represents, how to calculate it, as well as satisfactory values you can use as goals to achieve.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dGn9h3Xq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ilj6slpz6xdxrs7xz6h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dGn9h3Xq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ilj6slpz6xdxrs7xz6h.png" alt="table 1" width="880" height="1307"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SXndiCkZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5686ivngmkkt82rhrldp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SXndiCkZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5686ivngmkkt82rhrldp.png" alt="table 2" width="880" height="206"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Most popular email marketing types
&lt;/h2&gt;

&lt;p&gt;Marketing emails come in all shapes and sizes. Unfortunately, due to being too focused on crafting the right messaging, picking the optimal sending time, and so on, many marketers aren’t even aware of all the different types of email marketing campaigns out there or at what stage of the customer journey they should be used. This could lead to a lack of variety in your email communication which is key to engaging your audience and motivating them to take a specific action. &lt;/p&gt;

&lt;p&gt;To avoid that, we’ll quickly run through the most popular email marketing types.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Newsletters&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Marketers use email newsletters to deliver company and/or industry news, offers, tips, and essentially any type of content the recipients will find valuable. Newsletters are sent out on a regular basis to people who have subscribed to receive this type of communication, thus keeping them up-to-date with the company and industry.&lt;/p&gt;

&lt;p&gt;Frequency: For most businesses, the frequency of sending newsletters should be monthly or once every two-three weeks. This, of course, depends on the business’s target audience, the goal of the newsletter, and the content included in it. But, as a rule of thumb, the amount of time that passes between two email newsletters should be enough for you to create new valuable content and collect interesting additions such as links to webinars and events, company milestones, etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GrDKGCvC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j130opqnmc6cuplxriv0.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GrDKGCvC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j130opqnmc6cuplxriv0.jpeg" alt="Newsletters" width="478" height="2400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Welcome emails&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The purpose of a welcome email is quite simple – to thank the new subscriber for signing up, give your business an introduction, and let the subscriber know how often they should expect to hear from you. &lt;/p&gt;

&lt;p&gt;You can think of welcome emails as an opportunity to make a good first impression and start building your relationship with a subscriber.&lt;/p&gt;

&lt;p&gt;Within welcome emails, in most cases, some company and/or product/service information is provided, as well as links to related social media pages and helpful resources such as faqs, onboarding materials, or case studies. On top of that, this type of email might also include a special offer or discount code as a sign of appreciation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; Not applicable&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jU61Xb1f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u8w4lv0iny972p87mxw1.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jU61Xb1f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u8w4lv0iny972p87mxw1.jpeg" alt="Welcome emails" width="680" height="1534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Re-engagement emails&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you have inactive subscribers, re-engagement emails can help you remind them of your business and the value it provides for them.&lt;/p&gt;

&lt;p&gt;These emails can include things like special offers, discounts, coupons, exclusive content, and similar. And in some cases, an email asking the subscribers to update their email preferences can also be sent as a re-engagement email.&lt;/p&gt;

&lt;p&gt;To spot inactive subscribers, you should use engagement metrics such as click rate, open rate, etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; The time span between re-engagement emails should be around 4-8 weeks, which is just enough time for the recipient to not quite remember the last re-engagement email you sent. &lt;/p&gt;

&lt;p&gt;If you send a couple of these emails back to back, or very soon, one after the other, you might irritate the recipient, causing them to unsubscribe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3jst3qrt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lgxnjt2eancxkqbtvozt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3jst3qrt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lgxnjt2eancxkqbtvozt.png" alt="Re-engagement emails" width="680" height="1382"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cart abandonment emails&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you’ve ever shopped online, chances are you’ve received an abandoned cart email. This kind of email is triggered by an uncompleted purchase process in an eCommerce store, and its goal is to remind the customer about the item(s) they left in the cart and give them a little nudge to complete the transaction.&lt;/p&gt;

&lt;p&gt;Good abandoned cart emails are not pushy and should do the reminding in a friendly way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; Abandoned cart emails can be sent more than once for a single purchase process, and the recommendation is to send the first email within 24 to 48 hours of the cart abandonment. &lt;/p&gt;

&lt;p&gt;The following abandoned cart emails can be sent every 3 to 5 days through a drip campaign for as long as you deem necessary or until the transaction is finalized/the item(s) are out of stock.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tFPt6omE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwyvapctmf8d265znq8s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tFPt6omE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwyvapctmf8d265znq8s.png" alt="Cart abandonment emails" width="666" height="1344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transactional emails&lt;/strong&gt;&lt;br&gt;
Although they aren’t technically marketing emails, mentioning transactional emails is important as they are part of an overall email marketing strategy and complement marketing emails.&lt;/p&gt;

&lt;p&gt;Transactional emails fall under the category of confirmation emails and are sent after a customer/user completes a certain transaction – password change, sign up, order, etc. &lt;/p&gt;

&lt;p&gt;These are personalized and automated emails that usually contain a confirmation of the completed action, some information related to it as well as details such as the customer’s/user’s name, account information, and similar.&lt;/p&gt;

&lt;p&gt;Within an email marketing strategy, transactional emails can be used to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Upsell or cross-sell&lt;/li&gt;
&lt;li&gt;Build brand awareness&lt;/li&gt;
&lt;li&gt;Collect feedback&lt;/li&gt;
&lt;li&gt;Nurture relationships&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; Not applicable&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bU9Cvaqv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mjov6y8g3w3ygtjd1n9h.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bU9Cvaqv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mjov6y8g3w3ygtjd1n9h.jpeg" alt="Transactional emails" width="880" height="1012"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product update emails&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Product update emails are very effective at informing customers/users about product changes such as new features, removed features, bug fixes, integrations, enhancements, pricing, and basically anything that will affect product usage.&lt;/p&gt;

&lt;p&gt;Depending on the amount of detail provided in the email by the company sending it, the email could contain either just a simple copy explaining the changes or be as detailed as to include images, demos, and links to product landing pages, support articles, and other relevant things.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; Not applicable&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ecY7uRgm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ei8cc72jpxad3htvnh20.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ecY7uRgm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ei8cc72jpxad3htvnh20.jpeg" alt="Product update emails" width="442" height="2400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Post-purchase emails&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Post-purchase emails are considered both transactional and marketing emails as they are triggered by a specific action taken by a customer but also provide an opportunity to engage with customers and encourage further action.&lt;/p&gt;

&lt;p&gt;Through them, customers receive all the necessary post-purchase information, such as delivery and shipping details, product usage guides, and so on. This is when they take the form of transactional emails.&lt;/p&gt;

&lt;p&gt;But post-purchase emails can also deliver upsell or cross-sell offers, links/forms for feedback submission, and more when used as marketing emails.&lt;/p&gt;

&lt;p&gt;All in all, post-purchase emails serve as a great way to help build a relationship with the customer as well as customer loyalty and keep them updated on the status of their purchase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; The first post-purchase email should be sent right after the completed purchase. Additional emails of the same type should be sent over the following days or weeks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RmgRNCRA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wd35tkmwh6cx97qaixdt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RmgRNCRA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wd35tkmwh6cx97qaixdt.png" alt="Post-purchase emails" width="680" height="2066"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Seasonal emails&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Seasonal emails can include all (usually) promotional emails that are sent and themed according to specific upcoming events or times of the year. &lt;/p&gt;

&lt;p&gt;The goal of these emails is to engage the subscriber list, boost sales, and strengthen brand awareness. &lt;/p&gt;

&lt;p&gt;Within seasonal emails, you will most often find holiday greeting messages, discounts, deals, and season-themed product recommendations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; Not applicable&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Z2tUOECc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sowdq48si6p3z863blkf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z2tUOECc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sowdq48si6p3z863blkf.png" alt="Seasonal emails" width="680" height="2413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Steps for launching an email marketing campaign?
&lt;/h2&gt;

&lt;p&gt;Considering how effective email marketing campaigns can be, it should come as no surprise that launching them is a multiple-step process. To familiarize you with all of the steps, we’ll now go through each one and explain what it entails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Set clear goals/objectives&lt;/strong&gt;&lt;br&gt;
Earlier in the article, we introduced you to different email marketing campaign types, which are all intended to achieve a specific goal. With that said, to create a successful email marketing campaign and use the right type at the right time, you need to set goals you want to accomplish and make them clear. &lt;/p&gt;

&lt;p&gt;These goals will help you stay on course when creating copies, CTAs, etc., and will also serve as a benchmark for measuring campaign success.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Define your target audience and segment them&lt;/strong&gt;&lt;br&gt;
To create relevant messages, you need to get to know your audience so you can tailor messages to its different segments. &lt;/p&gt;

&lt;p&gt;When trying to determine who your audience is, you have to take into consideration a number of factors such as email list subscriber location, age, gender, occupation, purchase history, email engagement rate, and so on. Most importantly, you have to get to the bottom of why each subscriber decided to give you their email address and what they expect to gain from that.&lt;/p&gt;

&lt;p&gt;Once you have all the necessary information, use it to divide your audience into appropriate segments, to which you can then send highly-targeted emails they are more likely to engage with.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Pick an email marketing platform&lt;/strong&gt;&lt;br&gt;
To run an email marketing campaign, you will need an email marketing platform (also referred to as an email marketing tool or email marketing service) that will enable you to reach your audience and achieve the goals you set. The platform of your choice should also provide you with marketing automation and insights into how effective your campaign is. &lt;/p&gt;

&lt;p&gt;The additional aspects to keep in mind when making your email marketing platform pick are the features and functionalities it comes with, which need to support your business needs, ease of use, and scalability.&lt;/p&gt;

&lt;p&gt;So, before deciding on one platform, mark down your feature requirements, budget, as well as the size of your audience, and then test out any free email marketing platforms that might be a good fit and those that offer a free trial.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Create the content/copies&lt;/strong&gt;&lt;br&gt;
Creating email content is maybe the step where most of your focus should be, as content is what speaks to the recipient and what will encourage them to follow through with a desired action.&lt;/p&gt;

&lt;p&gt;In the content creation process, you will have to take care of the subject line, preview text, and email copy for each segment of your audience.&lt;/p&gt;

&lt;p&gt;As a general rule, keep the email copy original, in line with your brand’s voice, informative and short. &lt;/p&gt;

&lt;p&gt;Also, whenever possible, personalize the content for each recipient.&lt;/p&gt;

&lt;p&gt;Lastly, if appropriate, add some humor to make your email stand out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Schedule and launch&lt;/strong&gt;&lt;br&gt;
Once you have all the elements of your campaign ready, you’re just one step away from launching it! &lt;/p&gt;

&lt;p&gt;The last step is to pick a sending schedule. This is very important as having a sending schedule allows recipients to know when they can expect to hear from you, adding a dash of consistency to your campaign. &lt;/p&gt;

&lt;p&gt;But do keep in mind that this schedule shouldn’t be something that exists only in your head. Instead, it should be implemented using the email marketing platform you decide to go for, which usually comes with a built-in scheduling feature.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Monitor results&lt;/strong&gt;&lt;br&gt;
Campaign results are what is going to tell you how your audience is responding and whether you are close to reaching your goals. They will also help you do data-driven email marketing, learn from your past campaigns, and build more effective future ones.&lt;/p&gt;

&lt;p&gt;Again, results should be directly available within the email marketing platform you are using, and they should consist of all the email marketing metrics we covered earlier (open rate, CTR, conversion rate, ROI), as well as bounce rate and unsubscribe rate.&lt;/p&gt;

&lt;p&gt;Of course, you can choose to pay attention to other metrics, too; just make sure they are actually helping you understand how close you are getting to your goals.&lt;/p&gt;

&lt;p&gt;Finally, result measuring should be done as often as you deem necessary, but let once per month be the minimum.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Test and improve&lt;/strong&gt;&lt;br&gt;
Whether it’s because of the constantly evolving trends in the industry, some minor errors in the creation process, or something completely different, your email marketing campaigns will never be perfect. And that is completely fine! &lt;/p&gt;

&lt;p&gt;To get as close as you can to perfection, you need to repeatedly test and improve your campaigns. &lt;/p&gt;

&lt;p&gt;What should you test exactly? As many campaign elements as possible – design, layout, copy, subject lines, preview text, CTAs, sending schedule, target audience segmentation, etc.&lt;/p&gt;

&lt;p&gt;And what is the best method for the testing? A/B tests!&lt;/p&gt;

&lt;p&gt;These types of tests will allow you to test different versions of the same email and compare the results in terms of effectiveness which then enables you to make the necessary improvements in future emails and choose the most effective version. What’s more, running A/B tests will not hurt your budget, as sending emails is relatively inexpensive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start your email marketing journey on the right foot
&lt;/h2&gt;

&lt;p&gt;In this article, we did our best to cover all of the questions a newbie email marketer might have. And although we didn’t go into too much depth, the information provided should provide you with a sufficient overview to enable you to kickstart your email marketing journey or at least serve as the basis for further research on how email marketing works or any of the subtopics mentioned.&lt;/p&gt;

&lt;p&gt;Thank you for reading our &lt;a href="https://mailtrap.io/blog/email-marketing/"&gt;Getting Started with Email Marketing&lt;/a&gt; guide, which was written by Dzenana Kajtaz for the Mailtrap Blog.&lt;/p&gt;

&lt;p&gt;Good luck!&lt;/p&gt;

</description>
      <category>email</category>
      <category>emailmarketing</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Stop Emails Going to Spam</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 22 Dec 2022 17:36:09 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/how-to-stop-emails-going-to-spam-3308</link>
      <guid>https://dev.to/nataliiapolomkina/how-to-stop-emails-going-to-spam-3308</guid>
      <description>&lt;p&gt;Inbox placement rate (IPR) denotes emails that reached the recipient’s inbox rather than ending up in their spam or junk folder. Since 2015, the global IPR has grown from 79% to 85%. This means that only one in six commercial emails miss the target. Would you like to achieve this rate or even improve it for your marketing purposes? Below, you’ll find a comprehensive guide on how to stop your emails from going to spam.&lt;/p&gt;

&lt;h2&gt;
  
  
  My email got trapped in spam – what is wrong with it?
&lt;/h2&gt;

&lt;p&gt;Let’s say your email campaign covered 1K recipients, and only 600 messages reached the target inboxes. The email was the same for all the recipients, but 400 of them filtered into spam by email service providers. So, whose fault was it? Both the sender and the recipient have a part to play here. &lt;/p&gt;

&lt;p&gt;To reach the inbox, any email campaign has to comply with the requirements set by the recipient’s spam filters. These are a set of protocols that decide whether to let in an incoming message or not. So, it is just an obstacle you need to know how to pass through. And if you’re aware of its working principles, you’ll be able to handle it with ease. &lt;/p&gt;

&lt;h2&gt;
  
  
  How email filters work
&lt;/h2&gt;

&lt;p&gt;The success of your email campaign is heavily reliant on filter technology. Filters not only block incoming messages but organize them as well. Today, many email service providers break down your messages by social, commercial, newsletters, and other categories. They leverage specific criteria to evaluate an incoming message and place it to the relevant folder. &lt;/p&gt;

&lt;p&gt;Spam filters work in the same way and assign a spam score to the message. If the score meets a certain threshold, the email will be inboxed. Otherwise, you’ll find it in the spam folder. There is a long list of spam criteria, and it gets modified and adapted every day. The filtering practices are usually undisclosed, but we know that they include the following focus areas. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Types of spam filters&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Content&lt;/strong&gt; – check the content of an incoming message for spam trigger words, malicious attachments, refined HTML code, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Header&lt;/strong&gt; – check the header of an incoming message for infectious or falsified information.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blacklist&lt;/strong&gt; – check whether an incoming message has been sent from a sender not specified in the blacklist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rule-based or heuristic&lt;/strong&gt; – check an incoming message according to user-defined criteria. These may include spam triggers for specific senders, words in the subject line, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Permission&lt;/strong&gt; – request approval from the recipient to accept an incoming message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Challenge-response&lt;/strong&gt; – request approval from the sender to send a message (by entering a password or another method of authorization).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Spam filters can differ by not only the criteria to be assessed but also how they are implemented. Here are the most common options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Gateway – check an incoming message according to the criteria that the filter considers spammy based on the analysis of the incoming email. Usually, a gateway filter is implemented as a physical server to detect phishing, malware, viruses, and spam. Examples: Barracuda, SpamTitan, IronPort.&lt;/li&gt;
&lt;li&gt;Hosted – check an incoming message after it was approved by the gateway spam filter. Hosted filters, also known as third-party, use content and reputation criteria to assign a spam score to the email. Examples: Cloudmark, Spambrella, MailCleaner. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What you need to make a spam-proof email
&lt;/h2&gt;

&lt;p&gt;Combating spam looks pretty simple. But each type of email filter comprises many protocols or rules to be followed. For example, header filters are not limited to the information in the headers. They take into account the reputation of a sender’s domain and IP address, check email authentication policy, and so on. Nevertheless, there is no magic in dealing with spam filters, and we’ll teach you how to make your email campaign spam-proof. &lt;/p&gt;

&lt;h3&gt;
  
  
  Part 1 – Impeccable sender reputation
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Domain reputation&lt;/strong&gt;&lt;br&gt;
Email filters will assess the reputation of your domain based on the following metrics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Complaint rate&lt;/strong&gt; – how many messages of all emails sent from your domain have been reported by recipients as spam (by percentage). This is the most critical value for your domain reputation and deliverability in general. A high complaint rate is a sign that your email marketing is unwanted – it either targets false recipients or delivers poor value. The optimum complaint rate is below 0.1%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inbox placement rate&lt;/strong&gt; – how many messages of all emails sent from your domain have been inboxed (by percentage). This metric is more accurate than the delivery rate because it counts only inboxed emails. The optimum IPR is above 80%. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spam placement rate&lt;/strong&gt; – how many messages of all emails sent from your domain have been trapped in spam (by percentage). Your goal is to reduce this metric as much as possible. The optimum spam placement rate is below 10%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard bounce rate&lt;/strong&gt; – how many messages of all emails sent from your domain have been sent back due to an invalid or non-existent recipient address (by percentage). This metric is more valuable than a soft bounce rate that counts the rejected emails due to a short term issue (full mailbox, server down). The optimum hard bounce rate is below 2%.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Domain or email authentication&lt;br&gt;
Authentication is another vital element of your domain reputation. It is a must-have thing for any legitimate sender to protect the domain against phishing and spoofing. Email authentication rests on three widely adopted standards:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SPF – validates whether an IP address is authorized to send emails from a particular domain&lt;/li&gt;
&lt;li&gt;DKIM – authentication of emails using keys for signature-verification&lt;/li&gt;
&lt;li&gt;DMARC – email authentication using SPF and &lt;a href="https://mailtrap.io/blog/create-dkim-tutorial/"&gt;DKIM&lt;/a&gt; standards&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;IP address reputation&lt;/strong&gt;&lt;br&gt;
Blacklist is a crucial metric for measuring the IP address reputation. You should not be listed in any blacklist from BRBL to Return Path. If for some reason you have been, make sure to launch a blacklist-removal process. The most challenging thing here is to find out the reason.&lt;/p&gt;

&lt;p&gt;Apart from that, some email filters consider other metrics like complaints, spam trap hits, rejected messages, and so on. The type of IP address, &lt;strong&gt;dedicated&lt;/strong&gt; or &lt;strong&gt;shared&lt;/strong&gt;, is also important.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dedicated – one sender is responsible for the IP address reputation&lt;/li&gt;
&lt;li&gt;Shared – multiple senders are responsible for the IP address reputation
Hence, it is advisable to opt for the dedicated option if your email campaign exceeds 500K emails every week. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A new IP address is like a brand new car –  it needs a break-in period. Email service providers apply restricting measures to new addresses to combat spammers. As a result, if you send a high volume of emails right away, a significant batch may get to the spam folder. Hence, you should load your new IP address step by step. Once you show consistent traffic, your ESP will identify your IP address as legitimate, and the restriction will be off.&lt;/p&gt;

&lt;p&gt;Tools to check the sender’s reputation&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sender Score by Return Path – a popular tool to assess sender reputation and find out how email service providers view an IP address.&lt;/li&gt;
&lt;li&gt;IP Reputation Monitor by GlockApps – lets you check whether your IP has been blacklisted or not. Also, you can use the tool to delist your dedicated IP address. &lt;/li&gt;
&lt;li&gt;Barracuda Reputation System – a tool to check your IP address and domain based on a real-time database of IP addresses with poor and good reports.&lt;/li&gt;
&lt;li&gt;Email Reputation by Cisco’s Talos – check your reputation by three score ranking: Good, Neutral, and Poor. Neutral means that messages sent from the domain or IP address may still be filtered or blocked. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Part 2 – Polished email content
&lt;/h3&gt;

&lt;p&gt;Some time ago, the content was the primary catch of spam email filters. They checked incoming messages for spam trigger keywords, blacklisted links, and other inappropriate elements. Today, the content check is of lower priority than the sender’s reputation, but content filters are still actionable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Subject line&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Avoid promotional keywords like buy/sale/discount in subject lines&lt;/li&gt;
&lt;li&gt;Words typed with all capital letters are bad manners&lt;/li&gt;
&lt;li&gt;Exclamation points are no-go&lt;/li&gt;
&lt;li&gt;Focus on what may trigger the recipient’s interest like features or specs of the product/service you promote &lt;/li&gt;
&lt;li&gt;Personalized subject lines can boost the open rate by 10%
Pay particular attention to this element of your email campaign. With a weak subject line, you will still be able to pass spam filters. But a recipient can mark your email as spam which will impair your sender reputation. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Body text&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Recipients tend to distrust in unreadable and grammatically poor text. Besides, content filters may put your email campaign to spam if the number of spelling errors in your body text is high enough. Therefore, make sure to check grammar and proofread your body text. Readability is also crucial for positive recipient engagement, so mind that too. &lt;/p&gt;

&lt;p&gt;If you combine a plain text with an image in your email campaign, keep a balanced content ratio – 60% plain text and 40% image. The thing is that spam filters may catch an email if they cannot scan the text due to large images. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is a regular practice for email marketers to send multi-part messages that contain both plain text and HTML. The latter lets you improve the engagement of your emails and make the content eye-catching. And here, you have to be cautious as well. An HTML section that has formatting errors or broken tags is a sure way to the spam box. Always check your HTML content before sending it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Images&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It was already mentioned that an embedded image should not exceed 40% of the total message body. Also, it might be useful to avoid heavy images at all. As an alternative, you can compress the image and link to it on your web server or any credible service. This will decrease the message size and accelerate the processing and loading of the email campaign. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attachments&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An attachment is a red flag for email filters. Solid email filters will put a commercial or transactional email with an attachment in spam right away. So, the best you can do is to provide a link to a particular file placed on your website or another credible location. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Media content&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Abuse of media content in your email campaign increases the spamminess of your message. Besides, it reduces the recipient’s engagement. If there are some media your campaign can’t do without, add a link to it. Also, avoid dynamic scripts – spam filters won’t let them in.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools to check email content&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this blog post about email testing tools, you’ll find a comprehensive selection of email content previewers and checkers. Some services like Litmus or Email on Acid are full-fledged email preview tools. HTML Email Check or PutsMail focus on HTML content only. To check your subject line, you can opt for Email Subject Line Grader or Send Check It. Hemingwayapp is a perfect solution to validate your text readability. &lt;/p&gt;

&lt;h2&gt;
  
  
  Part 3 – Engaged recipient
&lt;/h2&gt;

&lt;p&gt;If you want high-level deliverability, make sure your recipients are engaged. Intricate email filters do assess engagement, which comprises the following metrics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;open rate – how many recipients opened your emails &lt;/li&gt;
&lt;li&gt;click rate – how many times a recipient clicked on the link in your email campaign&lt;/li&gt;
&lt;li&gt;click-through rate – how many recipients clicked on at least one link in your email campaign&lt;/li&gt;
&lt;li&gt;conversion rate – how many recipients completed the desired conversion goal
It’s most likely that you’re using the same metrics to measure the effectiveness of your email campaign. But before this, you need to be sure that the email will hit the inbox. And here is what you should take care of.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Email formatting&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An email should open correctly in most clients and devices. Use the preview testing tools to check this.&lt;/li&gt;
&lt;li&gt;An email should load fast. Avoid large images and dynamic scripts. &lt;/li&gt;
&lt;li&gt;Embedding forms are also a red flag for spam filters. It’s better to replace embedded forms with a link or a CTA button.&lt;/li&gt;
&lt;li&gt;Make sure the message is free of broken links. &lt;/li&gt;
&lt;li&gt;Do not abuse colors and fonts. Email filters consider irregular font colors and sizes, as well as invisible text. Even if a message with abused text design passes through spam filters, a recipient is likely to send it to the spam folder manually.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Email branding&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use your brand’s name in the “from” header. This reduces the spam complaints rate and increases the open rate. Also, it is a good practice to use a front person as an email campaign sender. In this case, add “from ” to the header to increase credibility. For example, Patrick Cosworth from Mailtrap.&lt;/li&gt;
&lt;li&gt;You can brand other elements of your email campaign including subject lines, headers, and even links. This is good for building recognition and sorting the email by folders. &lt;/li&gt;
&lt;li&gt;The design and content of your email campaign should be in line with your brand. Also, visual branding is best when it is consistent with the personas you’re aimed at. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Follow-ups&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Follow-up is another way to earn the credibility of email service providers. When you follow up with your recipients, you show that you want to engage them. But the balance here is important. Massive email attacks within short periods are suspicious and can lead to the spam folder. Remind about yourself once a week or two (depending on your activity). Also, this contributes to the progress of your domain reputation.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do not forget the unsubscribe link&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If your email campaign lacks an unsubscribe button/link, that’s also a good way to end up in the spam folder. Email service providers identify bulk emails as spam if no opt-out option is available. This is legal due to the CAN-SPAM (Controlling the Assault of Non-Solicited Pornography And Marketing) Act of 2003. So, if you think that you can improve the unsubscribe rate by omitting this button or link in your transactional emails, you’re making a mistake. &lt;/p&gt;

&lt;h2&gt;
  
  
  Test your email with a spam checker before sending
&lt;/h2&gt;

&lt;p&gt;Let’s say you’ve carried out all the steps above and are ready to launch your campaign. Hold on a second, the last step remains. Pick an email spam checker and test your email. You’ve got many options to choose from including Mailtrap, Mail Tester, GlockApps, and so on. For some spam checkers, you need to send your email to a specified address, and then you get a report. You can view your message, learn how to improve it, find out the authentication and blacklist status, and see if any broken links are there. &lt;/p&gt;

&lt;p&gt;Other tools can assess your email without sending it. Just paste all the content of your message including headers and you’ll see what is missing and how likely it is to be trapped by SpamAssassin. Once you’ve managed to reach the highest score, the email campaign can be launched. We hope your IPR won’t fall below 90%. Good luck!&lt;/p&gt;

&lt;p&gt;Thank you for reading our guide on how to &lt;a href="https://mailtrap.io/blog/avoid-spam-filters/"&gt;avoid email spam filters&lt;/a&gt;. It was initially published in the Mailtrap blog by Zakhar Yung.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>BIMI: the New Word in Email Authentication</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 08 Dec 2022 16:39:59 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/bimi-the-new-word-in-email-authentication-1no</link>
      <guid>https://dev.to/nataliiapolomkina/bimi-the-new-word-in-email-authentication-1no</guid>
      <description>&lt;p&gt;Here we go again. Just when you figured out what all these weird abbreviations (DKIM, SPF, DMARC) are, one more pops up on the horizon. Weren’t you safe enough already? Weren’t the spoofers, seeing your robust DNS records, quietly running away? Not all of them. The bad news is that you need to become familiar with the new kids on the block –  BIMI records. Good news – we’ve got them covered for you. Read on!&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a BIMI Record?
&lt;/h2&gt;

&lt;p&gt;BIMI stands for &lt;strong&gt;Brand Indicator for Message Identification&lt;/strong&gt;. It’s a new approach that aims to prevent spoofing attempts but also increases the credibility of email senders. When fully implemented, hackers will have a very hard time trying to impersonate brands in emails, and maybe in a lot of other places too.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A BIMI record is a DNS TXT record indicating what a brand’s logo is&lt;/strong&gt;. When properly certified and authenticated, brands will be able to display their logo next to each message in an inbox, just like in the example below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7ki3xqv3vxxm2du1bx9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7ki3xqv3vxxm2du1bx9.png" alt="BIMI Records" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When it’s well adopted and more logos start popping up in inboxes, users will be able to quickly spot when something’s not right. They’ll also learn to recognize the brand they know and like, coming with obvious benefits for the companies. We will cover more about that later.&lt;/p&gt;

&lt;p&gt;BIMI email authentication is developed as an open standard and it is possible that not only email clients will adopt it. Among the most likely candidates, messaging and social media apps are mentioned. Companies present there could also benefit from additional security. The platforms will probably be eager to get verified accounts on board. BIMI records could make a lot of difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  Email Providers Supporting BIMI
&lt;/h2&gt;

&lt;p&gt;As Google committed to the BIMI pilot in 2021, it became a major event in the email authentication industry. This means BIMI will now be supported by “two of the three biggest North American free mailbox providers,” writes Len Shneyder, vice president of industry relations for Twilio. The Authindicators Working Group has now brought together the most outstanding email tech providers: Google, Yahoo, Twilio, Comcast, Valimail, 250ok, and ReturnPath.&lt;/p&gt;

&lt;p&gt;Verizon Media Group (Yahoo, AOL, Netscape), Gmail, and Fastmail are currently in the beta phase of supporting BIMI. Comcast and Seznam.cz are in their planning phase for the BIMI adoption, while Microsoft hasn’t announced its support for BIMI yet. The trending numbers in BIMI adoption tracked by &lt;a href="https://www.bimiradar.com/no-top-plc" rel="noopener noreferrer"&gt;BIMI Radar&lt;/a&gt; mean that BIMI will now be available to more than 2 billion inboxes worldwide.&lt;/p&gt;

&lt;p&gt;What are the requirements to join the BIMI club?&lt;br&gt;
For BIMI to work, several conditions need to be met:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The sender’s domain needs to be DMARC-authenticated, with either ‘reject’ or ‘quarantine’ policy set up&lt;/li&gt;
&lt;li&gt;The domain’s owner needs to obtain the right certification&lt;/li&gt;
&lt;li&gt;A good sending history needs to be built&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s discuss these conditions one-by-one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Be DMARC-certified&lt;/strong&gt;&lt;br&gt;
We already discussed DMARC on our blog, but if you wish to read more about it, check out our &lt;a href="https://mailtrap.io/blog/dmarc-explained/" rel="noopener noreferrer"&gt;DMARC Explained&lt;/a&gt; article, along with our tips on &lt;a href="https://mailtrap.io/blog/dmarc-setup/" rel="noopener noreferrer"&gt;how to set up DMARC record&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Long story short, DMARC is an authentication method that works on top of SPF and/or DKIM.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://mailtrap.io/blog/spf-records-explained/" rel="noopener noreferrer"&gt;SPF&lt;/a&gt; is used to specify which IP addresses are allowed to send emails on behalf of a given domain. &lt;a href="https://mailtrap.io/blog/dkim/" rel="noopener noreferrer"&gt;DKIM&lt;/a&gt;, on the other hand, allows incoming servers to verify the headers and body of a message so that they look just like they did when they were leaving the sender’s inbox.&lt;/p&gt;

&lt;p&gt;DMARC runs either check (or both) and performs a separate domain alignment test for the methods used. Finally, a policy assigned with DMARC can suggest an incoming server if emails that fail a test should be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reject -&amp;gt; discarded and not delivered to the recipient’s inbox&lt;/li&gt;
&lt;li&gt;Quarantine -&amp;gt; sent to the spam folder&lt;/li&gt;
&lt;li&gt;None -&amp;gt; treated as though no check was made (good for testing)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As we mentioned earlier, to qualify for BIMI, the policy needs to be set to either ‘quarantine’ or ‘reject’. Of course, the DMARC record needs to be properly configured.&lt;/p&gt;

&lt;p&gt;DMARC doesn’t require both DKIM and SPF to be set up (though it’s a smart thing to do). For the BIMI record to have any effect, either of these methods should be in place, along with DMARC, of course. A check will be performed every time a message is due to be delivered, so it’s worth triple-checking if everything is intact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Obtain a certification&lt;/strong&gt;&lt;br&gt;
To add an additional layer of security, bodies governing BIMI, referred to as Mark Verifying Authorities (MVA), will ask for additional proof of domain ownership. At this time, there are two certifying authorities issuing VMCs (Verified Mark Certificate) for BIMI: &lt;a href="https://www.digicert.com/" rel="noopener noreferrer"&gt;DigiCert&lt;/a&gt; and &lt;a href="https://www.entrust.com/digital-security/certificate-solutions/products/digital-certificates/verified-mark-certificates" rel="noopener noreferrer"&gt;Entrust Datacard&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To get in, you’ll need to obtain an &lt;a href="https://en.wikipedia.org/wiki/Extended_Validation_Certificate" rel="noopener noreferrer"&gt;EV (Extended Validation) certificate&lt;/a&gt; and meet several additional requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prove the ownership or the right to use a registered trademark&lt;/li&gt;
&lt;li&gt;Have this trademark registered in a competent jurisdiction&lt;/li&gt;
&lt;li&gt;Make sure the logo from the BIMI record matches the trademark&lt;/li&gt;
&lt;li&gt;Assure the owner of a trademark is also a registrant of a given domain name (alternative, those using a trademark under a license must be registered as licensees of a domain)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Only if all of these conditions are met, the MVA will proceed to issue a respective certification.&lt;/p&gt;

&lt;p&gt;Keep in mind that you will require multiple VMCs in case you need to secure multiple domains. The same is true for multiple logos. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Maintain a good sending history&lt;/strong&gt;&lt;br&gt;
The last requirement is rather vague but is important to keep in mind. In order to qualify for BIMI, you’ll need to have a good sending reputation, both for your domain and IP address.&lt;/p&gt;

&lt;p&gt;This means having a healthy, engaged list of subscribers. Of course, you should avoid &lt;a href="https://mailtrap.io/blog/soft-vs-hard-bounce/" rel="noopener noreferrer"&gt;email bounces&lt;/a&gt; and spam reports, but the fact that your emails are regularly opened by the recipients will also play a significant role. &lt;/p&gt;

&lt;p&gt;You also will need to have a track record of sending a significant volume of emails. Smaller senders may also be granted access to BIMI at some point but for now, only bigger brands will have a shot.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to create BIMI records?
&lt;/h2&gt;

&lt;p&gt;Once you meet all the requirements and obtain respective certifications, you can go on and add a proper record to your Domain Name System (DNS).&lt;/p&gt;

&lt;p&gt;Then, you’ll need to upload your logo, necessarily in SVG format to a public HTTPS address. It’s recommended that it’s square-shaped and transparent. You may also want to avoid any unnecessary text as the logo displayed will be really small, making reading nearly impossible.&lt;/p&gt;

&lt;p&gt;Finally, you will add a TXT record for &lt;em&gt;default._bimi.DomainAddress&lt;/em&gt; in the following format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=BIMI1; l=logoURL;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example, for Mailtrap it could be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;v=BIMI1; l=https://www.mailtrap.io/logo123.svg;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(it’s not really a valid address but if you wish to use our logo, let us know!)&lt;/p&gt;

&lt;p&gt;That’s all. If you’re approved into the program and everything was configured properly, you should see the first effects within a few days.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where can BIMI authentication make a difference?
&lt;/h2&gt;

&lt;p&gt;When talking about BIMI authentication and its impact, the first thing that comes up is email security. After all, that’s precisely what BIMI record was introduced for. We also can’t underestimate the marketing impact it can have on brands. Let’s talk about these two aspects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security impact&lt;/strong&gt;&lt;br&gt;
While DKIM and SPF help prevent spoofing, skillful fraudsters can bypass these measures, especially if only one of them is set up. DMARC is much more difficult, as domain alignment is also checked. Chances are someone will pass through.&lt;/p&gt;

&lt;p&gt;That’s when BIMI comes in very handy. Most users don’t check the email addresses of the senders and email clients don’t display them right away. Instead, all users see is the display name of a sender, sometimes with company initials.&lt;/p&gt;

&lt;p&gt;This can be easily spoofed. &lt;strong&gt;When a BIMI record is in place, a brand’s missing logo may raise a yellow flag&lt;/strong&gt; for those used to seeing the branding displayed for each email.&lt;/p&gt;

&lt;p&gt;Popularizing BIMI will also directly &lt;strong&gt;impact the adoption rate of DMARC&lt;/strong&gt;. Even after several years since the release, most companies still don’t use this technology and, according to &lt;a href="https://www.agari.com/resources/guides/email-fraud-identity-trends-report" rel="noopener noreferrer"&gt;Agari’s research&lt;/a&gt;, only 8% of Fortune 500 companies have ‘reject’ or ‘quarantine’ policies in place. All the others are vulnerable to attacks, most of which can be easily prevented with the more sophisticated tools.&lt;/p&gt;

&lt;p&gt;It’s in the best interest of both users and email service providers to drive the adoption of DMARC. BIMI has a chance to finally move the numbers in the right direction.&lt;/p&gt;

&lt;p&gt;Now, &lt;a href="https://www.bimiradar.com/glob" rel="noopener noreferrer"&gt;BIMI Radar&lt;/a&gt; tracks the DMARC readiness and the adoption of BIMI with companies and organizations’ domains worldwide on a daily basis. It is interesting to note that &lt;strong&gt;Global BIMI readiness&lt;/strong&gt; is around 1.9% at the moment. The highest numbers go for the Netherlands – 48.5%,  with the UK standing at 38% and the US at 23.8% respectively. In general, European countries such as the Netherlands, Norway, and France lead the way in modern means of email authentication.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Marketing impact&lt;/strong&gt;&lt;br&gt;
A recent study &lt;a href="https://go.redsift.com/red-sift-and-entrust-partnership.html" rel="noopener noreferrer"&gt;Consumer Interaction with Visual Brands in Email&lt;/a&gt; conducted by &lt;a href="https://redsift.com/" rel="noopener noreferrer"&gt;Red Sift&lt;/a&gt; and &lt;a href="https://www.entrust.com/" rel="noopener noreferrer"&gt;Entrust&lt;/a&gt; revealed new patterns in consumer behavior with the brands that have incorporated BIMI into their email strategy and now display their logos in the inboxes.&lt;/p&gt;

&lt;p&gt;The survey found that the inclusion of BIMI standards logo has affected consumer behavior drastically by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;increasing open rates by 21%&lt;/strong&gt;, irrespective of brand strength or market share. Customers demonstrated higher responsiveness to the emails with the logo of the brand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;increasing average purchase chances by 34%&lt;/strong&gt;. Purchase feasibility was directly influenced by the recognizable brand logos displayed in the inbox.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;increasing brand recall by 18%&lt;/strong&gt;, after a 5-second exposure. A good sign for strengthening brand strategy and communication.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As the survey proves, emails signed with logos &lt;strong&gt;build users’ trust&lt;/strong&gt;, especially if the content that follows is valuable. Customers certainly feel safer opening emails from familiar sources.&lt;/p&gt;

&lt;p&gt;BIMI will likely expand at some point to other forms of online communication. Those that participate will be able to continuously develop brand awareness and quickly gain recognition.&lt;/p&gt;

&lt;p&gt;Since the BIMI logo for an email is fetched from a DNS every time a message is delivered, &lt;strong&gt;rebranding will also run smoother than it usually does&lt;/strong&gt;. All it will take is updating an SVG file in the domain’s DNS and changes will be applied with the next email delivered.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;The early data on BIMI implementation presented in recent surveys reveals quite promising perspectives. The adoption of BIMI has already significantly influenced the companies’ email marketing strategies and brand communication as well as elevated consumers’ responsiveness and trust.&lt;/p&gt;

&lt;p&gt;Although the global adoption of BIMI might not be going as fast as one could have expected, with only roughly a quarter of companies around the world displaying BIMI records readiness, it still seems to gently but persistently push email environments to the highest standards of security.&lt;/p&gt;

&lt;p&gt;Chances are that a few years from now, we’ll be looking suspiciously at emails coming in without company logos. Or who knows, maybe a completely different approach will take over by then and change the way we think about email authentication.&lt;/p&gt;

&lt;p&gt;Thank you for reading our guide on &lt;a href="https://mailtrap.io/blog/bimi-email/" rel="noopener noreferrer"&gt;how BIMI authentication works&lt;/a&gt;, which was initially published on the Mailtrap blog.&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>PTR Records and Why They Matter for Emails</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 01 Dec 2022 16:19:10 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/ptr-records-and-why-they-matter-for-emails-19gh</link>
      <guid>https://dev.to/nataliiapolomkina/ptr-records-and-why-they-matter-for-emails-19gh</guid>
      <description>&lt;p&gt;Sorted out authentications? Check. Built a domain reputation? Check. Avoided spam filters at all costs? Check. The list of things for improving deliverability goes on and on. Let’s add one more thing to the list then because PTR records can make a difference too. What are they about? How do you add them properly? Let’s see!&lt;/p&gt;

&lt;h2&gt;
  
  
  What are PTR Records?
&lt;/h2&gt;

&lt;p&gt;PTR records (short for Pointer Records) are used to perform a Reverse DNS lookup. &lt;/p&gt;

&lt;p&gt;As you probably know, DNS (Domain Name System) is sort of a phonebook for the Internet. It stores an enormous amount of information about millions of registered domains. To access its (virtual) pages, you need to perform a DNS lookup of a given domain.&lt;/p&gt;

&lt;p&gt;This is typically done by browsers right after you type in an email address. With a DNS lookup, they can quickly understand that the /blog/ address actually represents the 3.215.223.38 IP address. This result is called an ‘A Record’. &lt;/p&gt;

&lt;p&gt;A PTR Record is obtained in the opposite fashion. By performing a Reverse DNS lookup, a server can resolve an IP address to obtain a domain or a hostname.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvg6p425fslzetvjwhef6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvg6p425fslzetvjwhef6.png" alt="dns ptr record" width="790" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why PTR records are important?
&lt;/h2&gt;

&lt;p&gt;An email travels across the servers (MTAs) on the way to the recipient’s email client. Before it’s delivered to an inbox, most email providers will enforce one simple test. They’ll run a DNS lookup simultaneously with a Reverse DNS lookup and will compare whether the results match. If they don’t or a PTR record simply doesn’t exist, an email is likely to be sent to spam or even discarded.&lt;/p&gt;

&lt;p&gt;PTR Records are a defense used by servers against spammers, especially those using fraudulent domain names (let’s say, mailtrop.io). If the records are configured for mailtrap.ip, resolving an IP address with a PTR lookup (Reverse DNS lookup) won’t point to a real domain. This, as a result, will send up a red flag for an MTA and will likely lead to an email being discarded.&lt;/p&gt;

&lt;p&gt;That’s why it’s important to have a PTR record added to your domain’s DNS if you use it to send mass emails. &lt;/p&gt;

&lt;p&gt;PTR records are also important for marketers and for their analytical tools, such as Google Analytics. As a website owner, you can easily see which IP addresses visit your pages. The numbers themselves would be rather meaningless but thanks to Reverse DNS lookup you can see the hostnames or domains of visitors. And this can give you some valuable information.&lt;/p&gt;

&lt;p&gt;Let’s now learn how to add a PTR record to a domain’s DNS.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to set up PTR records?
&lt;/h2&gt;

&lt;p&gt;Same as when you add a regular A record, the steps for adding a PTR record also very much depend on your hosting provider. For some, you should be able to add one in your admin panel. For others, you might need to reach out to the support team so they can set this up for you. We’ll assume you’re able to add PTR Records yourself.&lt;/p&gt;

&lt;p&gt;To do so, you’ll first need to define a Reverse zone. By definition, a zone is a separate portion of a domain name space in DNS. A zone is directly related to the size of your IP network. Mailtrap’s IP (3.215.223.38) uses a traditional IPv4 protocol (using an X.X.X.X structure) so there are 255 IP addresses available – 3.215.223.1, 3.215.223.2 and so on until 3.215.223.255.&lt;/p&gt;

&lt;p&gt;Since we need an address for the entire zone, we omit the last digit and reverse the order of numbers. The address of our PTR record would be 223.215.3.in-addr.arpa. If we were to create a PTR record only for one single address, we would use 38.223.215.3.in-addr.arpa.&lt;/p&gt;

&lt;p&gt;What’s up with in-addr.arpa in each address? It’s a second-level domain suffix that’s added to all the addresses in IPv4. If you were to use a more common IP in the IPv6 system, a PTR Record’s address would end with ip6.arpa.&lt;/p&gt;

&lt;p&gt;Add a PTR record following these rules. Then, check if there’s a match. Mailtrap.io should point to 3.215.223.38 (A record) while 38.223.215.3.in-addr.arpa should point to Mailtrap.io (PTR record). If this is the case for your domain’s DNS, you can say you’ve reached a Forward-confirmed reverse DNS (FCrDNS).&lt;/p&gt;

&lt;p&gt;A PTR record should look like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx95wmvzedqebrrhv1m2l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx95wmvzedqebrrhv1m2l.png" alt="dns ptr" width="800" height="163"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Can I have multiple PTR records?
&lt;/h2&gt;

&lt;p&gt;By definition, a PTR record can only point to one hostname. But what if you want to have multiple PTR records for a single IP address? This could work when you have several domains registered, each pointing to the same IP address (and displaying the same website when entering an address). To get the PTR records right, you’ll want to resolve this IP address for each of these domains – otherwise, you won’t have a match. &lt;/p&gt;

&lt;p&gt;DNS doesn’t restrict the number of entries you can have but having multiple PTR records is not recommended. Software running mail servers often expect only a single entry for each IP address. When it retrieves it, it starts treating it as a canonical name for a given hostname. As a result, if multiple PTR records are defined for a single IP address, during a Reverse DNS lookup, a server may just pick one at random. And that one might not necessarily match the A record.&lt;/p&gt;

&lt;p&gt;When adding MX records to DNS, you can specify their priority. No such feature is available for PTR records.&lt;/p&gt;

&lt;p&gt;As a result, adding multiple PTR records for an individual IP doesn’t make you look any more credible in the virtual eyes of ISPs. Quite the opposite, in fact, it might result in a failed verification of A/PTR records and lower the chance of your email getting delivered.&lt;/p&gt;

&lt;p&gt;I hope our guide on how to &lt;a href="https://mailtrap.io/blog/ptr-record/" rel="noopener noreferrer"&gt;create PTR record&lt;/a&gt; was useful for you. The article was initially published in the Mailtrap blog. &lt;/p&gt;

</description>
      <category>watercooler</category>
      <category>ai</category>
    </item>
    <item>
      <title>Your Guide to Safe Emails: Create and Implement a DKIM Record</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 24 Nov 2022 21:41:51 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/your-guide-to-safe-emails-create-and-implement-a-dkim-record-343a</link>
      <guid>https://dev.to/nataliiapolomkina/your-guide-to-safe-emails-create-and-implement-a-dkim-record-343a</guid>
      <description>&lt;p&gt;In the DKIM Explained blog post at the &lt;a href="https://mailtrap.io/blog/create-dkim-tutorial/"&gt;Mailtrap blog&lt;/a&gt;, we featured a doleful story of a product owner named Mark who missed a chance to sell his product to a prospect named Yvonne. Mark’s marketing emails reached Yvonne’s mailbox but ended up in a ‘spam’ folder. So, she has signed with another company. The reason was quite simple: Mark’s emails lacked a DKIM signature. Don’t make his mistake and set up your DKIM record with the help of this guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is required for a DKIM signature?
&lt;/h2&gt;

&lt;p&gt;DomainKeys Identified Mail (DKIM) is a digital signature added to outbound emails. It looks like a random set of characters mostly unreadable to a human user. Recipients don’t see this unless they dig into the source code of the email. DKIM is meant for the recipient’s email server, which authenticates the sender based on it and, if everything seems to be fine, lets pass the email to the mailbox. Here is an example of a regular DKIM record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asuswebstorage.com; s=default; t=1572282571; bh=NFzBvJ/pEmf+yUHDd/Y7dYNH9pE+Bx6o95KcxhwFL78=; h=From:To:Subject:From; b=QwgINKqwcBu3GbeWm2Be81qXks6Pq9yMmDZl9C6mT8moXVBeokpEmDN+0RyZFiOmNH30kbe6HbS2lY3b1Pf726UH/V/0VAH0nigTuir4TWdN/IUePV+goQdEJ2+sDQ1fHlVjyyJCRwCiFiZpBIjhTBNN0vrgNJZ/gSLLOvq6k3s=

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It consists of the following tags:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;v=1 – the version (always equals to 1)&lt;/li&gt;
&lt;li&gt;a= – a signing algorithm used for the creation of a DKIM record&lt;/li&gt;
&lt;li&gt;c= – a canonicalization algorithm for the header and the body&lt;/li&gt;
&lt;li&gt;d= – a domain where the DKIM is signed&lt;/li&gt;
&lt;li&gt;s= – a DKIM selector&lt;/li&gt;
&lt;li&gt;t= – a timestamp of when the email was signed&lt;/li&gt;
&lt;li&gt;bh= – a hashed email body&lt;/li&gt;
&lt;li&gt;h= – a list of headers&lt;/li&gt;
&lt;li&gt;b= – a digital signature &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To create the DKIM signature, you will have to specify only two tags of all the above: an authorized domain (d=) and a selector (s=). &lt;/p&gt;

&lt;h3&gt;
  
  
  Choose a domain
&lt;/h3&gt;

&lt;p&gt;When validating DKIM signatures, the recipient’s mail server checks whether the domain included in the signature (d=) matches the domain included in the ‘From:‘ field of the email. You may use different domains for sending different types of emails, so make sure each is authorized.&lt;/p&gt;

&lt;p&gt;*NB: If you’re using different domains for sending emails, you’ll need to have separate DKIM signatures for each domain. *&lt;/p&gt;

&lt;h3&gt;
  
  
  Pick a DKIM selector
&lt;/h3&gt;

&lt;p&gt;A selector or a selector prefix is a name you need to specify to create the DKIM key. During the validation process, the server runs a DNS query according to the combination of the authorized domain (d=) and the selector (s=). This is required to fetch the public key.&lt;/p&gt;

&lt;p&gt;Each selector is assigned to a separate private key. If you send different types of emails (marketing, transactional, etc.) from the same domain, it’s better to use separate keys for your convenience though you don’t have to. You’ll need to use different selectors to generate those. Pick any name for your selector. &lt;/p&gt;

&lt;h3&gt;
  
  
  Choose a public and private key generator
&lt;/h3&gt;

&lt;p&gt;The domain and selector are the input data used to generate a key pair, which consists of the public and the private key. The public key is used in the DNS TXT record, whereas the private key is used for the sending MTA. Check our blog post, “&lt;a href="https://mailtrap.io/blog/mail-transfer-agent/"&gt;What is an MTA?&lt;/a&gt;”, if you need to brush up on what that is.&lt;/p&gt;

&lt;p&gt;The MTA uses the private key to hash headers (h=) and the body (bh=) of the outbound email. The private key is kept on the server and never leaves. &lt;/p&gt;

&lt;p&gt;When an email with DKIM arrives, a receiving mail server makes a DNS query to get the public key. The server uses it to build its own hashes and then compares them with the ones received. If there’s a match, the email is let in.  &lt;/p&gt;

&lt;p&gt;You can generate these keys with one of the following tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://dkimcore.org/tools/keys.html"&gt;DKIM Core&lt;/a&gt; – the selector is assigned automatically.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.socketlabs.com/domainkey-dkim-generation-wizard/"&gt;DKIM Generation Wizard by SocketLabs&lt;/a&gt; – allows you to assign a selector and generate 1024 and 2048 bit key pairs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.sparkpost.com/resources/tools/dkim-wizard/"&gt;DKIM Wizard by SparkPost&lt;/a&gt; – allows you to assign a selector and generate 1024 and 2048 bit key pairs. Previously known as Port25.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://easydmarc.com/tools/dkim-record-generator"&gt;DKIM Record Generator by Easy DMARC&lt;/a&gt; – allows you to assign a selector and lookup DKIM. &lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.zerobounce.net/services/dkim-generator.html?gclid=uti"&gt;DKIM Wizard by Unlock The Inbox&lt;/a&gt; – allows you to assign a selector and generate 512, 768 (keys smaller than 1024 bits are subject to off-line attacks), 1024, and 2048 bit key pairs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html"&gt;PuTTY&lt;/a&gt; – an installable tool for generating public-private key pairs on Windows and Linux.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.ssh.com/academy/ssh/keygen"&gt;ssh-keygen&lt;/a&gt; – an installable tool for generating public-private key pairs on Linux.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With some tools, you can generate 2048-bit domain keys. They are more secure than 1024-bit ones. But you can use them only if your DNS system supports them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I create a DKIM record for my domain?
&lt;/h2&gt;

&lt;p&gt;Now, the meat! Let’s go through the steps required to create a DKIM record online. As an example, we’ll use the domain ‘example.com’ and the selector ‘test-mail’.&lt;/p&gt;

&lt;h3&gt;
  
  
  Generate public and private keys
&lt;/h3&gt;

&lt;p&gt;Generate your public and private key pair using a dedicated tool. We’re using DKIM Wizard by SparkPost, as follows:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xiFpUgi6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhnqfcryjneaqhu4jxc5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xiFpUgi6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhnqfcryjneaqhu4jxc5.png" alt="DKIM Wizard" width="852" height="634"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After the click on &lt;strong&gt;Create Keys&lt;/strong&gt;, we’ve got two keys: public and private.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FzenWWhJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/npm1qmpoapuunkk3c8w0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FzenWWhJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/npm1qmpoapuunkk3c8w0.png" alt="DKIM Wizard 2" width="748" height="665"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Configure the DNS server with the public key
&lt;/h3&gt;

&lt;p&gt;Create a DKIM TXT record using the domain, selector and the public key. The record will carry the name of the authorized domain attached with the selector prefix, as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;test-mail._domainkey.example.com

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The DKIM entry starts with the k= tag. It stands for ‘Key type’. Sending and receiving servers must support the rsa key type, which indicates that an ASN.1 DER-encoded public key is being used in the p= tag. The p= tag further encodes the value using base64. Here is what we’ve got:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;test-mail._domainkey.example.com IN TXT
“k=rsa\; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCehqKMB6znGXo/pC83mGObm8OWo4daBYBb9wqqDaflz7Mf9KW1oaUm9j7hQq7af7jh+DSw0tXWr4HbJrI50DW/QVHqYKlPX3hvYUohBxg//T0u0rK3OSJss3OrpkoRqd150ynYxwwLymsjIwODT7Gf9WZPcL86rdboSRm/ost4mwIDAQAB”

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add this DKIM entry to your domain’s DNS records. In most cases, you’ll have to wait 24-48 hours for the changes to take effect.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to know which DNS hosting provider I have?
&lt;/h3&gt;

&lt;p&gt;A DNS hosting service is commonly provided by a domain name registrar, but it’s not a must. You can find out which DNS provider you have using a dedicated online tool. For example, MXToolbox and its SuperTool. Let’s check out a DNS hosting provider for Mailtrap.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ltfItvC0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v4du9ajwdgl3yrgk5usq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ltfItvC0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v4du9ajwdgl3yrgk5usq.png" alt="Network Tools From MxToolBox 3" width="755" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that’s what we’ve got in response:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KIAJYm0W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q602dnhmkypwgplnhav3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KIAJYm0W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q602dnhmkypwgplnhav3.png" alt="Network Tools From MxToolBox 4" width="728" height="170"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Save the private key to your MTA
&lt;/h3&gt;

&lt;p&gt;Every mail transfer agent is different, and so are the ways to set up DKIM on them. On Exim, for example, you need to create a new file containing the private key and update the main configuration file. For Sendmail, Postfix, or another MTA that supports milters, you can use a tailored milter – OpenDKIM. Check the documentation of your MTA for more details. You can also read about the differences between Postfix, Sendmail, and Exim. &lt;/p&gt;

&lt;p&gt;That’s it. Now you can send a test email from your domain. The flow for setting up DKIM might look a bit different for each provider, since they have their own procedures for creating DKIM records. Check out some of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting up DKIM records at popular email service providers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Gmail
&lt;/h3&gt;

&lt;p&gt;Gmail users whose domains were provided by a G Suite domain host partner need to turn on DKIM signing only. All the rest (domain key generation and adding it to domain’s DNS records) are done by Gmail. Regular users will have to do this manually according to the &lt;a href="https://support.google.com/a/answer/173535"&gt;official procedure&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Office 365
&lt;/h3&gt;

&lt;p&gt;In this &lt;a href="https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/use-dkim-to-validate-outbound-email?view=o365-worldwide"&gt;Microsoft official guide&lt;/a&gt;, you’ll discover how to create a DKIM record Office 365, how to configure DKIM for more than one domain, how to upgrade 1024-bit keys to 2048-bit DKIM encryption keys, and much more.&lt;/p&gt;

&lt;h3&gt;
  
  
  Amazon SES
&lt;/h3&gt;

&lt;p&gt;To create a DKIM record on AWS, you have to accomplish five steps laid out in this &lt;a href="https://docs.aws.amazon.com/en_us/ses/latest/DeveloperGuide/easy-dkim-setup-domain.html"&gt;documentation&lt;/a&gt;. You will also find a list of the most common DNS providers to update the DNS records for your domain at ease.&lt;/p&gt;

&lt;h3&gt;
  
  
  MailChimp
&lt;/h3&gt;

&lt;p&gt;In &lt;a href="https://mailchimp.com/es/help/set-up-email-domain-authentication/"&gt;MailChimps documentation&lt;/a&gt;, the emphasis is made on both DKIM and &lt;a href="https://mailtrap.io/blog/spf-records-explained/"&gt;SPF records&lt;/a&gt;. The process includes two parties where you’ll need to complete tasks: MailChimp and your domain provider editor.&lt;/p&gt;

&lt;h3&gt;
  
  
  Campaign Monitor
&lt;/h3&gt;

&lt;p&gt;Campaign Monitor also provides a detailed “how to create DKIM record wizard”. You won’t have to generate a key pair using a third-party tool, since it’s available in-house. In the &lt;a href="https://help.campaignmonitor.com/manage-your-own-authentication"&gt;documentation&lt;/a&gt;, there is also a section about how to add DKIM records on popular DNS hosts.&lt;/p&gt;

&lt;h2&gt;
  
  
  To wrap up
&lt;/h2&gt;

&lt;p&gt;DKIM is an advanced &lt;a href="https://mailtrap.io/blog/email-authentication/"&gt;email authentication&lt;/a&gt; standard and every reputable email sender must implement it. Other options include Sender Policy Framework (SPF), which is a fundamental protection against email forgery. &lt;a href="https://mailtrap.io/blog/dmarc-explained/"&gt;DMARC&lt;/a&gt;, in turn, leverages DKIM and/or SPF for more advanced checks on received emails. Handle your email security properly. This will let you enjoy the growing metrics of your email campaigns.&lt;/p&gt;

&lt;p&gt;Thanks for reading our guide on how to &lt;a href="https://mailtrap.io/blog/create-dkim-tutorial/"&gt;generate DKIM&lt;/a&gt; Record for your domain. The article was initially published in the Mailtrap blog by Piotr Malek.&lt;/p&gt;

</description>
      <category>dkim</category>
      <category>email</category>
    </item>
    <item>
      <title>Difference Between Hard and Soft Bounce</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 17 Nov 2022 18:16:13 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/difference-between-hard-and-soft-bounce-2enm</link>
      <guid>https://dev.to/nataliiapolomkina/difference-between-hard-and-soft-bounce-2enm</guid>
      <description>&lt;p&gt;“Your email failed to be delivered”. Again. Why? Even when you think you configured everything properly, there are various reasons why your email might bounce. Some might be really your fault but most of the time, it’s things out of your control that cause emails to come back in a matter of seconds. Let’s analyze each case one by one and talk about the difference between an &lt;a href="https://mailtrap.io/blog/soft-vs-hard-bounce/" rel="noopener noreferrer"&gt;email soft bounce&lt;/a&gt; and hard bounce.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hard bounce vs soft bounce
&lt;/h2&gt;

&lt;p&gt;Whenever your email bounces, you’ll receive an automatic email right away that will look something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyc7qikukhc3kg0z1ec9y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyc7qikukhc3kg0z1ec9y.png" alt="hard soft bounce" width="800" height="321"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oftentimes, an error message clearly indicates what the reason was for a bounce along with advice on how to fix it. Sometimes, though, the message is not so clear and you need to know how to interpret it.&lt;/p&gt;

&lt;p&gt;In general, we differentiate two types of email bounces – soft and hard ones.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hard bounce
&lt;/h3&gt;

&lt;p&gt;A hard bounce is a permanent failure of &lt;a href="https://mailtrap.io/blog/email-deliverability/" rel="noopener noreferrer"&gt;email delivery&lt;/a&gt;. It indicates that there will be no further attempt to deliver a message and you need to find a different way to reach the recipient.&lt;/p&gt;

&lt;p&gt;An email usually hard bounces when the email address you typed in doesn’t exist. Alternatively, a recipient’s ISP (Internet Service Provider) can just reject your email for numerous reasons.&lt;/p&gt;

&lt;h3&gt;
  
  
  Soft bounce
&lt;/h3&gt;

&lt;p&gt;A soft bounce is a temporary failure of email delivery. Although an email failed to deliver this time, often a server will make further attempts a bit later. Sometimes all you need to do is wait.&lt;/p&gt;

&lt;p&gt;An email bounces softly when the recipient’s mailbox is full, either side hits some limits or a message is deemed too large to be accepted. &lt;/p&gt;

&lt;p&gt;Notifications related to an out-of-office or other autoresponders are also sometimes treated as soft bounces but they work a bit differently. More about those below.&lt;/p&gt;

&lt;p&gt;Some emails bounce for some other reasons and the way clients communicate these errors is sometimes far from obvious. We’ll discuss those as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Causes of hard bounces
&lt;/h2&gt;

&lt;p&gt;Hard bounces happen for many different reasons. Here are the most common ones in more detail:&lt;/p&gt;

&lt;h3&gt;
  
  
  The recipient does not exist
&lt;/h3&gt;

&lt;p&gt;This error indicates that the email address you used doesn’t exist. A simple typo could cause it but maybe a nonexistent domain is the reason here. Or maybe someone doesn’t work at a given company anymore and their email address was removed – this would also cause a hard bounce.&lt;/p&gt;

&lt;p&gt;When an email address you used doesn’t exist, you’ll often receive a 550 5.5.1 server error, as was the case above. If the reason behind rejection is unclear but you see these mysterious numbers, you can quickly connect the dots and react accordingly. We covered this error in more detail in &lt;a href="https://mailtrap.io/blog/550-5-1-1-rejected-fix/" rel="noopener noreferrer"&gt;another article on our blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If this is the reason for the bounce, double-check if you didn’t mistype your recipient’s address. Often times, however, there’s nothing you can do other than removing a recipient from the list. Keeping such contacts on your email list and having your emails bounce over and over again will only affect your deliverability. Negatively.&lt;/p&gt;

&lt;h3&gt;
  
  
  Your email was blocked by a server
&lt;/h3&gt;

&lt;p&gt;Modern email servers reject tons of emails they suspect of being unwanted. And while they’re almost always right to do so, sometimes they get rid of perfectly legitimate t emails without a moment of hesitation.&lt;/p&gt;

&lt;p&gt;The reasons for this can be many. Often, a lack of proper authentication plays a role so make sure you have &lt;a href="https://mailtrap.io/blog/spf-records-explained/" rel="noopener noreferrer"&gt;SPF&lt;/a&gt;, &lt;a href="https://mailtrap.io/blog/dkim/" rel="noopener noreferrer"&gt;DKIM&lt;/a&gt; as well as &lt;a href="https://mailtrap.io/blog/dmarc-explained/" rel="noopener noreferrer"&gt;DMARC&lt;/a&gt; set up. Check also if you have PTR Records set up and if they match A record from your domain’s DNS.&lt;/p&gt;

&lt;p&gt;To improve the experience of its users, ISPs also look at their past behavior when determining whether an email should be accepted or not. If you keep sending emails but recipients never care to open them, a server may finally reject them before they reach an inbox to save them the trouble. For that reason, it’s good to clear your mailing lists every now and manually remove inactive contacts.&lt;/p&gt;

&lt;p&gt;If none of these helps and your emails still bounce, it’s worth seeking support. If you experience problems with a particular domain, reaching out to them directly might get you whitelisted for the future deliveries. Your ESP may be able to both advise and solve some problems on your behalf.&lt;/p&gt;

&lt;h3&gt;
  
  
  Mailbox is full
&lt;/h3&gt;

&lt;p&gt;Each mailbox comes with a certain quota of data dedicated to outgoing and incoming emails. When the limit is reached, each new message will likely bounce once and for all. Some providers might give a delivery another try a few days later in which case this would fall into a soft bounce category.&lt;/p&gt;

&lt;p&gt;But don’t hope for that. If you’re getting such alerts, try reaching the recipients some other way. Maybe they’re not even aware of this fact. In many cases, unfortunately, this might indicate an abandoned account so you’re better off searching for a different contact method anyway.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenge-response error
&lt;/h3&gt;

&lt;p&gt;This error is of a bit different type than its predecessors on our list. Some people set up an additional firewall meant to authenticate senders. Sometimes email providers set those up by default too. &lt;/p&gt;

&lt;p&gt;When you email such contact for the first time, you’ll get an automatic response. Usually, you’ll be asked to answer a question or perform some action to verify that you’re a legitimate sender. Once you do, your email will be delivered. If you, however, ignore this email and a few days pass, your email will bounce.&lt;/p&gt;

&lt;p&gt;The only thing you can do to avoid it is to, well, complete the challenge. The good news is that in most cases once you prove you’re a homo sapiens, you won’t have to repeat this boring routine again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Causes of soft bounces
&lt;/h2&gt;

&lt;p&gt;Soft bounces also happen every now and then. Some are harmless, some indicate just temporary problems but many might foreshadow imminent hard bounces. Here are the most common motives behind soft bounces:&lt;/p&gt;

&lt;h3&gt;
  
  
  DNS Failure or other errors
&lt;/h3&gt;

&lt;p&gt;DNS Failure is a common error caused by the receiving side. It indicates that there was some issue with Domain Name System and a message couldn’t be delivered at the time. Likely, a server was temporarily down or was misconfigured. If that was the case, a delivery will likely be retried over the next days and only if it fails multiple times, a hard bounce will occur.&lt;/p&gt;

&lt;p&gt;Sometimes, this error might also appear if the domain you send to doesn’t exist. In such a case, there will be no future attempts and you’ll need to look for other ways to contact a recipient.&lt;/p&gt;

&lt;p&gt;Any other errors can also occur during a transmission – for example, a connection may time out. In such a case, a server is likely to retry several times at a later time before it gives up.&lt;/p&gt;

&lt;h3&gt;
  
  
  A message is too large
&lt;/h3&gt;

&lt;p&gt;Just as mailboxes have capacity limits, also individual messages are often subject to limitations. And while your outgoing servers might allow some messages with large attachments, it might not necessarily be true for ISPs.&lt;/p&gt;

&lt;p&gt;If a message cannot be delivered due to its size, many ESPs will retry sending it over a specific time period – usually several days. If they still fail to deliver by that time, they’ll be permanently rejected.&lt;/p&gt;

&lt;h3&gt;
  
  
  A limit is reached
&lt;/h3&gt;

&lt;p&gt;Some ISPs might also impose limits on the number of emails that can be received, to prevent flooding inboxes with spam. While it’s fairly rare for legitimate messages to be stopped like this, it might happen. In such cases, delivery will likely be retried several times, and only if none of the attempts succeed will the email bounce.&lt;/p&gt;

&lt;h3&gt;
  
  
  Autoresponder is triggered
&lt;/h3&gt;

&lt;p&gt;Very often, sending to a large group of recipients will result in a wave of autoresponders hitting your inbox. This is especially true during the holiday season. Very often these messages are merely informing you that the recipient is currently out of the office and will get to your message a bit later. In such cases, the message has arrived in their inbox anyway so there’s nothing you have to do. It won’t hurt to follow-up a few days after they’re back, though, if you don’t hear from them until then.&lt;/p&gt;

&lt;p&gt;It’s worth reading through such autoresponders, however. Sometimes they may inform you that a person you’re writing on moved on to a different company and no longer reads these messages. Companies tend to keep such mailboxes alive and leave instructions on who to contact instead. If that’s the case, make sure you update the contacts on your mailing list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;We hope the difference between both types of bounces is more clear now. You should also have an idea on how to mitigate the risk of seeing them for your next campaign. If you’re interested in more tips on improving your emails, check out other articles on our blog. We talk about email sending, testing, and everything that revolves around email functionalities.&lt;/p&gt;

&lt;p&gt;This article was initially written by &lt;strong&gt;Denys Velykozhon&lt;/strong&gt;, Content Marketer at Mailtrap. Read more on email sending, testing, and everything that revolves around email functionalities in the Mailtrap blog.&lt;/p&gt;

</description>
      <category>dotnet</category>
    </item>
    <item>
      <title>Send and Receive Emails in C#</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Thu, 10 Nov 2022 12:43:50 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/send-and-receive-emails-in-c-24hg</link>
      <guid>https://dev.to/nataliiapolomkina/send-and-receive-emails-in-c-24hg</guid>
      <description>&lt;p&gt;As one of Microsoft’s most successful programming languages, it’s safe to say that C# enjoys a lot of popularity and adoption among developers. &lt;/p&gt;

&lt;p&gt;These same developers are behind the creation of everything from desktop and web applications to enterprise software and games, which often need to have an email-sending functionality for distributing email notifications to users.&lt;/p&gt;

&lt;p&gt;So how do developers incorporate the email-sending functionality into their software and send emails with C#? We tackle this question in the text below, so if you’re interested, keep on reading!&lt;/p&gt;

&lt;h2&gt;
  
  
  How to send emails in C# with SMTP?
&lt;/h2&gt;

&lt;p&gt;The most common way of sending emails from your C# application is by using a Simple Mail Transfer Protocol (SMTP) server. But, as C# is not able to communicate with and instruct an SMTP host server on its own, you will need the .NET framework.&lt;/p&gt;

&lt;p&gt;In case you are not on a first-name basis with .NET, it’s an open-source developer platform/framework also created by Microsoft. It is for building different types of applications (web, mobile, desktop, gaming, IoT, and more) and supports a range of languages, editors, and libraries. &lt;/p&gt;

&lt;p&gt;What makes .NET so crucial in the email-sending process is the fact that it contains classes for sending emails to an SMTP server which then delivers them to recipients.&lt;/p&gt;

&lt;p&gt;To start using .NET in your application, make sure that within it, you have the following two namespaces:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;using System.Net;&lt;br&gt;
using System.Net.Mail;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then, you can use your variation of the following code example below to send your first email using C#. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Although the code below can be used, it is considered somewhat outdated as it uses the SmtpClient class of the System.Net.Mail namespace instead of the MailKit library one (covered later in the article), which is more suited to modern development standards. So, if you are interested in taking only the more modern coding approach, please skip to the next section of this article.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System;

using System.Net;
using System.Net.Mail; 

namespace TestClient {
  class Program
  {
    public static void Main (string[] args)
    {
      MailAddress to = new MailAddress("ToAddress");
      MailAddress from = new MailAddress("FromAddress");

      MailMessage email = new MailMessage(from, to);
      email.Subject = "Testing out email sending";
      email.Body = "Hello all the way from the land of C#";

      SmtpClient smtp = new SmtpClient();
      smtp.Host = "smtp.server.address";
      smtp.Port = 25;
      smtp.Credentials = new NetworkCredential("smtp_username", "smtp_password");
      smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
      smtp.EnableSsl = true;

      try
      {
        /* Send method called below is what will send off our email 
         * unless an exception is thrown.
         */ 
        smtp.Send(email);
      }
      catch (SmtpException ex)
      {
        Console.WriteLine(ex.ToString());
      }
    }
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you paid close attention to the code above containing the MailMessage C# example (no worries if you didn’t; we’re not in a rush :)), you will notice the use of placeholders for things such as the from and to email addresses and, more importantly, the SMTP server details. &lt;/p&gt;

&lt;p&gt;All of these are customized. So, for instance, if you want to send an email using Gmail SMTP server, you should replace smtp.server.address with smtp.gmail.com. &lt;/p&gt;

&lt;p&gt;Our choice for an SMTP server falls on &lt;a href="https://mailtrap.io/"&gt;Mailtrap&lt;/a&gt;’s primarily because we enjoy how easy it is to find the necessary credentials and complete the setup.&lt;/p&gt;

&lt;p&gt;We will talk more about Mailtrap as an email delivery platform a bit later, as it could be a great solution for both testing and sending your emails. But, for the time being, it’s great to keep in mind the practicality of its SMTP server for when it comes time to decide on one yourself. At the end of the day, it’s not the most practical to send email without SMTP server.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to send emails in C# with MailKit?
&lt;/h2&gt;

&lt;p&gt;MailKit is a cross-platform .NET mail-client library facilitating not only email sending but receiving as well. &lt;/p&gt;

&lt;p&gt;Now, you might be thinking, “Wait, wait. Didn’t you just showcase how the email-sending process is done with no involvement of MailKit?” Yes, we did. And while the code above is valid and should work without an issue in most cases, the SmtpClient class used in it might cause a few hiccups.&lt;/p&gt;

&lt;p&gt;Why? Well, according to Microsoft and their &lt;a href="https://learn.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient?view=net-6.0"&gt;documentation&lt;/a&gt;, the SmtpClient class lacks support for many modern protocols and is thus not recommended for new development. Instead, the use of MailKit or a different email library and its classes is a better alternative.&lt;/p&gt;

&lt;p&gt;To start using MailKit, you will first need to install it via NuGet.&lt;/p&gt;

&lt;p&gt;This is done in the Package Manager Console of Visual Studio using the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Install-Package MailKit&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After the installation, you can start sending emails using this C# MailKit example code with customizations, of course:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System;

using MailKit.Net.Smtp;
using MailKit;
using MimeKit;

namespace TestClient {
  class Program
  {
    public static void Main (string[] args)
    {
      var email = new MimeMessage();

      email.From.Add(new MailboxAddress("Sender Name", "sender@email.com"));
      email.To.Add(new MailboxAddress("Receiver Name", "receiver@email.com"));

      email.Subject = "Testing out email sending";
      email.Body = new TextPart(MimeKit.Text.TextFormat.Html) { 
        Text = "&amp;lt;b&amp;gt;Hello all the way from the land of C#&amp;lt;/b&amp;gt;"
      };

      using (var smtp = new SmtpClient())
      {
        smtp.Connect("smtp.server.address", 587, false);

        // Note: only needed if the SMTP server requires authentication
        smtp.Authenticate("smtp_username", "smtp_password");

        smtp.Send(email);
        smtp.Disconnect(true);
      }
    }
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Yes, yes, we know what you spotted in the code, the SmtpClient class. No worries, this isn’t the same class from the System.Net.Mail namespace.&lt;/p&gt;

&lt;p&gt;This is the SmtpClient class from MailKit.Net.Smtp, which is the Microsoft-approved alternative. &lt;/p&gt;

&lt;h2&gt;
  
  
  How to send emails in C# with Mailtrap Email API?
&lt;/h2&gt;

&lt;p&gt;What you saw demonstrated above was the old-fashioned way of sending emails in C#. And while there is nothing wrong with it, it certainly isn’t as advanced and effortless as sending with third-party email services, which more often than not, provide automation features, analytics, and more.&lt;/p&gt;

&lt;p&gt;When it comes to picking these types of services, you might want to consider &lt;a href="https://mailtrap.io/"&gt;Mailtrap Email API&lt;/a&gt; – the email-sending side of the Mailtrap email delivery platform and the optimal choice for those who want to have more control over their email deliverability.&lt;/p&gt;

&lt;p&gt;After going through the secure and smooth setup, you can use Email API to send your emails and make them land in people’s inboxes instead of their spam folders.&lt;/p&gt;

&lt;p&gt;Email API makes this possible by giving you tools to spot and fix early sending issues.&lt;/p&gt;

&lt;p&gt;To be more specific, those who decide on using Email API as their third-party email service gain access to actionable analytics features, which include daily and weekly deliverability alerts, up to 60-day email logs, webhooks, and dashboards with critical alerts. &lt;/p&gt;

&lt;p&gt;Among the listed features, what might be the most interesting are the color-coded critical alert dashboards which can be filtered by top mailbox providers, thus enabling you to dig deeper to improve your email performance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--98lbMRyI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://community.codenewbie.org/remoteimages/uploads/articles/3swjoxmxold3c4b1ot8w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--98lbMRyI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://community.codenewbie.org/remoteimages/uploads/articles/3swjoxmxold3c4b1ot8w.png" alt="send email in c# 1" width="880" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Speed-wise, Email API can go up to ~10000 emails/second. And to make sure email sending goes as smoothly as possible, there are dedicated IPs, auto IP warmup, and suppression lists at your disposal.&lt;/p&gt;

&lt;p&gt;To integrate Email API into your C# application, you will need a &lt;a href="https://mailtrap.io/register/signup"&gt;Mailtrap account&lt;/a&gt; (free plan available). &lt;/p&gt;

&lt;p&gt;Once your account is active, the next step you need to complete is adding and verifying your domain – a process described in the video below.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/g5o0ixCi4tg"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Upon domain verification, you should be taken to the API and SMTP Integration page, where you can find the Email API integration code containing your API key and the other necessary details in a number of programming languages, including C#.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var client = new RestClient("https://send.api.mailtrap.io/api/send");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer &amp;lt;YOUR_API_TOKEN&amp;gt;");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\"from\":{\"email\":\"mailtrap@mailtrap.io\",\"name\":\"Mailtrap Test\"},\"to\":[{\"email\":\"ToMailAddress\"}],\"subject\":\"You are awesome!\",\"text\":\"Congrats for sending test email with Mailtrap!\",\"category\":\"Integration Test\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As Mailtrap also supports SMTP, you can simply take the credentials provided to you and use them in your project, app, or email-sending service to start sending with Email API.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to send an HTML email in C#?
&lt;/h2&gt;

&lt;p&gt;As HTML emails are far more eye-catching than plain text, sending them serves as a simple way to better engage your recipients, and now we’ll demonstrate how it’s done in C#.&lt;/p&gt;

&lt;p&gt;Do keep in mind that we are going to stick with the MailKit route, as there is no reason not to follow Microsoft’s advice when it comes to their own framework.&lt;/p&gt;

&lt;p&gt;So, to create an HTML email in C#, we will use the same code that was used in the “How to send emails in C# with MailKit” section of this article but with a few tweaks.&lt;/p&gt;

&lt;p&gt;The most notable tweak will be at the part where we define the email message body. &lt;/p&gt;

&lt;p&gt;For a &lt;strong&gt;plain text&lt;/strong&gt; email, this is the message body code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;message.Body = new TextPart("plain")
{
  Text = @"Hey, Just wanted to say hi all the way from the land of C#. -- Code guy"
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To now turn this message body into HTML, we’ll use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var bodyBuilder = new BodyBuilder();

bodyBuilder.HtmlBody = "&amp;lt;p&amp;gt;Hey,&amp;lt;br&amp;gt;Just wanted to say hi all the way from the land of C#.&amp;lt;br&amp;gt;-- Code guy&amp;lt;/p&amp;gt;";

bodyBuilder.TextBody = "Hey,
Just wanted to say hi all the way from the land of C#.
-- Code guy"; 

message.Body = bodyBuilder.ToMessageBody();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Embedding an image
&lt;/h3&gt;

&lt;p&gt;If you are thinking, “but what about images,” no worries, we’ve got you covered there as well and will now demonstrate how to send email with image in body.&lt;/p&gt;

&lt;p&gt;Embedding an image into your custom HTML email body or HTML email template requires just a few additional lines of code, and it’s nothing more complicated than what we’ve done so far:&lt;/p&gt;

&lt;p&gt;var bodyBuilder = new BodyBuilder(); &lt;br&gt;
bodyBuilder.TextBody = @"Hey, Just wanted to say hi all the way from the land of C#. -- Code guy";&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var image = builder.LinkedResources.Add(@"C:\Users\CodeGuy\Documents\selfie.jpg");
image.ContentId = MimeUtils.GenerateMessageId();

bodyBuilder.HtmlBody = string.Format(@"&amp;lt;p&amp;gt;Hey,&amp;lt;br&amp;gt;Just wanted to say hi all the way from the land of C#.&amp;lt;br&amp;gt;-- Code guy&amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;center&amp;gt;&amp;lt;img src=""cid:{0}""&amp;gt;&amp;lt;/center&amp;gt;", image.ContentId);

message.Body = bodyBuilder.ToMessageBody();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we used the LinkedResources property, which enables us to add a special type of attachment that is linked to from the HtmlBody property. In our case, that attachment is an image named selfie.jpg.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to send email with attachment in C #?
&lt;/h2&gt;

&lt;p&gt;While we are on the topic of attachments, let’s explain the simplest method of creating an email containing one in C#.  &lt;/p&gt;

&lt;p&gt;When using MailKit, that method involves the BodyBuilder class, which came in very handy in the creation of our HTML email.&lt;/p&gt;

&lt;p&gt;In the code below, you can see how we added a PDF document named tutorial.pdf using the Attachments property of the BodyBuilder class:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var builder = new BodyBuilder();

// Set the plain-text version of the message text
builder.TextBody = @"Hey,
  Just wanted to say hi all the way from the land of C#. Also, here's a cool PDF tutorial for you!
  -- Code guy
";

// The part where we include the new attachment...
builder.Attachments.Add(@"C:\Users\CodeGuy\Documents\tutorial.pdf");

message.Body = builder.ToMessageBody();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How to send email to multiple recipients in C#?
&lt;/h2&gt;

&lt;p&gt;Sending your email to multiple recipients in C# is pretty easy and involves the use of the InternetAddressList class and the AddRange method.&lt;/p&gt;

&lt;p&gt;First, you will create an instance of the InternetAddressList class using an empty constructor, to which you then need to add all the recipients.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;InternetAddressList list = new InternetAddressList();
list.Add(new MailboxAddress("First Receiver", "first@email.com"));
list.Add(new MailboxAddress("Second Receiver", "second@email.com"));
list.Add(new MailboxAddress("Third Receiver", "third@email.com"));

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, you can move on to creating the MimeMessage class instance, adding the sender, and adding the list of recipients to the instance with the AddRange method.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var message = new MimeMessage();
message.From.Add(new MailboxAddress("Sender Name", "sender@email.com"));
message.To.AddRange(RecipientList);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Testing emails before sending them in C#: Why and how?&lt;br&gt;
Sending is enabled in your C# app. Hooray! But don’t let this excitement rush you into sending emails to real recipients just yet. &lt;/p&gt;

&lt;p&gt;Before proceeding with that, it’s essential you do some testing, and there are a couple of reasons why:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your custom email or email template HTML/CSS might not look as good in other email clients as it does in yours.&lt;/li&gt;
&lt;li&gt;Your email content might be a bit spammy. &lt;/li&gt;
&lt;li&gt;The domain you intend on sending from might be present on blacklists. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These and other issues related to your emails can only be detected through adequate inspecting and debugging using equipped email testing tools. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://mailtrap.io/"&gt;Email Sandbox&lt;/a&gt; is the email testing side of the Mailtrap email delivery platform.&lt;/p&gt;

&lt;p&gt;Email Sandbox is a tool geared toward devs, but it can also be used by anyone wanting to debug and inspect emails at staging. And since it comes with no risk of spamming real users during the process, unlike the manual route, it can also be considered a safe environment for email testing.&lt;/p&gt;

&lt;p&gt;Email Sandbox has plenty of other benefits when compared to manual testing, such as the preservation of domain reputation due to using a virtual inbox as opposed to your personal one, automation of test flows and scenarios, and saving time during setup and usage.&lt;/p&gt;

&lt;p&gt;Users of Email Sandbox have a range of features at their disposal, such as HTML/CSS analysis, email content spam score checking and previews, blacklist reports, insights into valuable tech info, and more available to them after integrating the testing tool into their C# app using a code snippet or the credentials of their virtual inbox. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TTgfi-JD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://community.codenewbie.org/remoteimages/uploads/articles/xz9ahxwodreb1faoj7lg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TTgfi-JD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://community.codenewbie.org/remoteimages/uploads/articles/xz9ahxwodreb1faoj7lg.png" alt="send email with c sharp 2" width="880" height="468"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For C# apps, the following code snippet is used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Net;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            var client = new SmtpClient("smtp.mailtrap.io", 2525)
            {
                Credentials = new NetworkCredential("username", "password"),
                EnableSsl = true
            };
            client.Send("from@example.com", "to@example.com", "Hello world", "testbody");
            Console.WriteLine("Sent");
            Console.ReadLine();
        }
    }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you run the code, you can check your virtual inbox. &lt;/p&gt;

&lt;p&gt;Your first test email should be there, and you are now able to inspect and debug it using Email Sandbox’s features.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q0CvxlNH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://community.codenewbie.org/remoteimages/uploads/articles/dseoz3vuuty6apfccnph.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q0CvxlNH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://community.codenewbie.org/remoteimages/uploads/articles/dseoz3vuuty6apfccnph.png" alt="send emails c# tutorial 3" width="880" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to receive emails in C#?
&lt;/h2&gt;

&lt;p&gt;Although it’s not super common, you might need to enable your C# app to receive/retrieve emails from a POP3 or IMAP mail server. Luckily, MailKit is capable of doing exactly that.&lt;/p&gt;

&lt;p&gt;Those of you looking to retrieve messages from a POP3 server should first make sure that you have the appropriate using directives at the top of your code file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System;
using MailKit.Net.Pop3;
using MailKit;
using MimeKit;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, you can use the following code snippet to connect to the server and get all the messages present on it using a for or foreach loop, whatever you prefer.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using (var client = new Pop3Client())
{
    client.Connect("pop.server.com", 110, false);
    client.Authenticate("pop_username", "pop_password");

    for (int i = 0; i &amp;lt; client.Count; i++)
     {
        var message = client.GetMessage(i);
        Console.WriteLine("Subject: {0}", message.Subject);
    }

    client.Disconnect(true);
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For IMAP, the following using directives are needed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System;

using MailKit.Net.Imap;
using MailKit.Search;
using MailKit;
using MimeKit;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the code for retrieving the messages from the IMAP server will be quite similar to the one used for POP3, just with a few differences here and there.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using (var client = new ImapClient())
{
    client.Connect("imap.server.com", 993, true);
    client.Authenticate("imap_username", "imap_password");

  var inbox = client.Inbox;
    inbox.Open(FolderAccess.ReadOnly);

    Console.WriteLine("Total messages: {0}", inbox.Count);
    Console.WriteLine("Recent messages: {0}", inbox.Recent);

    for (int i = 0; i &amp;lt; inbox.Count; i++)
  {
        var message = inbox.GetMessage(i);
        Console.WriteLine("Subject: {0}", message.Subject);
    }

    client.Disconnect(true);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As MailKit provides numerous options when it comes to messages on IMAP servers, we suggest you take a look at the available GitHub &lt;a href="https://github.com/jstedfast/MailKit/blob/master/nuget/GettingStarted.md"&gt;documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping things up
&lt;/h2&gt;

&lt;p&gt;So, that was all we had to cover in this sending with C# tutorial. From the old-fashioned method involving System.Net.Mail’s SmtpClient class which is not really recommended anymore to using MailKit and &lt;a href="https://mailtrap.io/email-api"&gt;Mailtrap’s Email API&lt;/a&gt; which is now standard practice, we covered all the options for sending emails that might come in handy. &lt;/p&gt;

&lt;p&gt;We also touched upon HTML emails, attachments, images, multiple recipients, and even how to retrieve emails with C# code. That being said, feel free to use this article as a handbook on all things regarding how to send email with C#.&lt;/p&gt;

&lt;p&gt;Also, make sure to remember to never send emails without doing proper testing beforehand with tools such as &lt;strong&gt;Mailtrap&lt;/strong&gt; &lt;a href="https://mailtrap.io/"&gt;Email Sandbox&lt;/a&gt;; otherwise, the spam folder might be the only place your emails reach regardless of how much time you spent tweaking the text or configuring your mail settings.&lt;/p&gt;

&lt;p&gt;Interested in more C# content? Then you might want to check out our (ASP DotNet) &lt;a href="https://mailtrap.io/blog/send-email-in-asp-net-c-sharp/"&gt;ASP.NET send email&lt;/a&gt; and &lt;a href="https://mailtrap.io/blog/validate-email-address-c/"&gt;C# email validation&lt;/a&gt; articles. Or you can come back to our blog in a few weeks to read our soon-to-be-published sending with ASP.NET Core article.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;




&lt;p&gt;I hope you enjoyed our guide on &lt;a href="https://mailtrap.io/blog/csharp-send-email/"&gt;sending emails in C Sharp&lt;/a&gt;, which was initially published in the Mailtrap blog. &lt;/p&gt;

</description>
      <category>csharp</category>
      <category>email</category>
    </item>
    <item>
      <title>Sending emails from Google Sheets</title>
      <dc:creator>nataliiapolomkina</dc:creator>
      <pubDate>Sun, 30 Oct 2022 23:09:21 +0000</pubDate>
      <link>https://dev.to/nataliiapolomkina/sending-emails-from-google-sheets-57h7</link>
      <guid>https://dev.to/nataliiapolomkina/sending-emails-from-google-sheets-57h7</guid>
      <description>&lt;p&gt;Google Sheets are great! Need to perform some advanced calculations? Store an enormous amount of data? Fetch from external services on a regular basis? They can do it all and a lot more too. Another useful but maybe not so well known feature is the ability to send emails from Google Sheets. How does it work? How do you set it up? Let’s see!&lt;/p&gt;

&lt;h2&gt;
  
  
  Why send emails from Google Sheets in the first place? A case study.
&lt;/h2&gt;

&lt;p&gt;First of all, let’s clarify why you would even want to use Google Sheets to send emails in the first place. The idea itself may sound crazy at first, but there are tons of use cases behind it. Let’s illustrate it in an example.&lt;/p&gt;

&lt;p&gt;As you may know, except for all our regular team members, we have a bunch of minions working for us day and night*. Our minions help us develop and maintain Mailtrap as the best platform for pre-production email testing. As everyone knows, minions like bananas. A lot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--d7dSAJlO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/upvspxhaao311u2ejqu6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d7dSAJlO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/upvspxhaao311u2ejqu6.jpg" alt="minion-banana" width="880" height="660"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;*No, we don’t really hire minions, but it’s a great example anyway. Photo credit: hdqwalls.com&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;To motivate minions, we pay them in bananas – the exact amount depending on the complexity of the task and their performance. Since feeding an army of minions is a rather complex task, we’ve decided to ease the pain by implementing some automations. Each of our minions is added to the spreadsheet, listing its name, email address (even minions have those), and the accumulated amount of bananas.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rUo5luNK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1zmpqdoojrd9gmuq21iz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rUo5luNK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1zmpqdoojrd9gmuq21iz.png" alt="send-emails-from-google-sheet" width="880" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Since we have more important things to do than handing out individual bananas to minions, we’ve set up a rule – each minion needs to accumulate 20 or more bananas before they can pick them up. Of course, they can wait longer, until they reach 50 for example, but, really, who would do that?&lt;/p&gt;

&lt;p&gt;Since minions are not very good with spreadsheets, we need to email them when their banana count reaches 20 or more. For that, we’re going to need to build a script to send emails from Google Spreadsheets.&lt;/p&gt;
&lt;h2&gt;
  
  
  Sending emails from Google Sheets step by step
&lt;/h2&gt;

&lt;p&gt;To get started, let’s open the Script Editor. Pick &lt;strong&gt;Tools&lt;/strong&gt; from the menu at the top and then &lt;strong&gt;Script Editor&lt;/strong&gt;. A new page will load.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wHF37PlI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6iv3t5esa40au50j99j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wHF37PlI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6iv3t5esa40au50j99j.png" alt="send-emails-from-google-sheet" width="880" height="594"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Name it what you wish. Clear the window and insert the following JavaScript code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function sendBananaCountEmails() {
  const sheet = SpreadsheetApp.getActiveSheet();
  const dataRange = sheet.getRange("A2:C6");
  const data = dataRange.getValues();

  data.forEach(function (rowData) {
    const recipient = rowData[0];
    const emailAddress = rowData[1];
    const bananasCount = rowData[2];

    if (bananasCount &amp;lt; 20) {
      return
    }

    const greeting = 'Dear ' + recipient + ',\n'
    const bananasCountMessage = 'You have ' + bananasCount + ' bananas accumulated.';
    const greatJobMessage = 'Great job! Come pick them up :)';

    const message = [greeting, bananasCountMessage, greatJobMessage].join('\n');
    const subject = 'Good news, you have some bananas waiting for you!';

    MailApp.sendEmail(emailAddress, subject, message);
  })
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Save the script you’ve just created. If you’re ready to run it, pick the name from the list at the top (it will contain just one position in the beginning anyway) and hit the triangular ‘Run’ button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w1kOl77c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n5bnollaxp1xoto3xqe8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w1kOl77c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n5bnollaxp1xoto3xqe8.png" alt="send-emails-from-google-sheet" width="444" height="163"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before you send a campaign, you’ll need to authorize Gmail to send emails on your behalf.&lt;/p&gt;

&lt;p&gt;There’s a chance that the script you’ve just created will be considered as unverified by Google at first. If that happens, open ‘Advanced’ options and choose to proceed anyway.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zovbFjZI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzvqs4uci8843c9oi8ff.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zovbFjZI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzvqs4uci8843c9oi8ff.png" alt="send-emails-from-google-sheet" width="880" height="803"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If your script is correct, it will be executed immediately. Double-check that you added the correct email addresses to the spreadsheet (we haven’t ;-)). Otherwise, your emails will simply bounce.&lt;/p&gt;

&lt;p&gt;Your email will be sent right away and, before you finish this sentence, it will properly land in the respective minion’s inboxes. Each will look something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LPfgFUAk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vj7ghwvmuba4rivzubz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LPfgFUAk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vj7ghwvmuba4rivzubz.png" alt="send-emails-from-google-sheet" width="814" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Let’s break down the code
&lt;/h3&gt;

&lt;p&gt;To make it very clear what just happened, let’s explain the code in a bit more detail.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function sendBananaCountEmails() {
  const sheet = SpreadsheetApp.getActiveSheet();
  const dataRange = sheet.getRange("A2:C6");
  const data = dataRange.getValues();

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the first part of the code, we’re making sure that our data source is an active spreadsheet. If it’s not, we won’t be able to fetch data from it.&lt;/p&gt;

&lt;p&gt;We also declare the range of data to be used with the script – in our case rows A-3 and columns 2 to 6.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;data.forEach(function (rowData) {
    const recipient = rowData[0];
    const emailAddress = rowData[1];
    const bananasCount = rowData[2];

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, we declare three variables, each corresponding to a different column of our spreadsheet.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (bananasCount &amp;lt; 20) {
      return
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you remember, we only wanted to send emails when a minion has accumulated 20 or more bananas. We specified this condition here.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const greeting = 'Dear ' + recipient + ',\n'
    const bananasCountMessage = 'You have ' + bananasCount + ' bananas accumulated.';
    const greatJobMessage = 'Great job! Come pick them up :)';

    const message = [greeting, bananasCountMessage, greatJobMessage].join('\n');
    const subject = 'Good news, you have some bananas waiting for you!';

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, all we have to do is put the pieces together to form a message with a subject.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MailApp.sendEmail(emailAddress, subject, message);
  })
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, we tell Gmail to send emails on our behalf to all the records that meet the criteria.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automating the process
&lt;/h2&gt;

&lt;p&gt;The script we explained above won’t work without human help. Every time you want to launch a check, you’ll need to run the script manually. For some, it will be perfectly fine. For most, a bit more automation will be required.&lt;/p&gt;

&lt;p&gt;We need to create a script for sending automatic emails from Google Spreadsheets. We’ll run it at regular intervals according to our needs.&lt;/p&gt;

&lt;p&gt;If you want the minions to know right away when they reach or cross the threshold, daily checks will probably do the job. You can also opt for weekly, monthly or any other. Of course, you can just send emails to everyone in the spreadsheet regardless of their banana count. Or you could stay true to the initial criteria of &amp;gt;=20 bananas. Let’s see how both are done.&lt;/p&gt;

&lt;p&gt;We’re going to implement two types of reports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A daily report that’s only sent to minions that have accumulated 20 or more bananas.&lt;/li&gt;
&lt;li&gt;A monthly report that’s sent to everyone involved.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because of that, let’s follow the &lt;a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself"&gt;DRY principle&lt;/a&gt; and extract a common behavior into a common function. Let’s create a new script…&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WfOYWTTQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ry37ax5ghfb15pf457ab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WfOYWTTQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ry37ax5ghfb15pf457ab.png" alt="send-emails-from-google-sheet" width="880" height="818"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;… and call it &lt;em&gt;“forEachMinion“&lt;/em&gt;. It will look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function forEachMinion(callback) {
  const sheet = SpreadsheetApp.getActiveSheet();
  const dataRange = sheet.getRange("A2:C6");
  const data = dataRange.getValues();
​
  data.forEach(function (rowData) {
    const recipient    = rowData[0];
    const emailAddress = rowData[1];
    const bananasCount = rowData[2];

    callback(recipient, emailAddress, bananasCount);
  })
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We’ll use the function above for both reports – daily and monthly.&lt;/p&gt;

&lt;p&gt;Now let’s create separate scripts for each report.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;bananaDailyReport&lt;/em&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function bananaDailyReport() {
  forEachMinion(function(recipient, emailAddress, bananasCount) {
    if (bananasCount &amp;lt; 20) {
      return
    }
​
    const greeting = 'Dear ' + recipient + ',\n'
    const bananasCountMessage = 'You have ' + bananasCount + ' bananas accumulated.';
    const greatJobMessage = 'Great job! Come pick them up :)';
​
    const message = [greeting, bananasCountMessage, greatJobMessage].join('\n');
    const subject = 'Good news, you have some bananas waiting for you!';
​
    MailApp.sendEmail(emailAddress, subject, message);
  })
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;bananaMonthlyReport:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function bananaMonthlyReport() {
  forEachMinion(function(recipient, emailAddress, bananasCount) {
    const greeting = 'Dear ' + recipient + ',\n'
    const bananasCountMessage = 'You have ' + bananasCount + ' bananas on your account. Keep it going! Remember you can come pick them up once you reach 20 or more.';
​
    const message = [greeting, bananasCountMessage].join('\n');
    const subject = 'Here's your weekly banana summary!';
​
    MailApp.sendEmail(emailAddress, subject, message);
  })
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can run each of these scripts manually as we did before but that’s not the point, right?&lt;/p&gt;

&lt;p&gt;Luckily, Google already implemented a simple tool for triggering reports. It’s aptly named &lt;a href="https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers"&gt;Time-driven triggers&lt;/a&gt;, and we’ll use it today.&lt;/p&gt;

&lt;p&gt;Let’s create another script, which will set up triggers responsible for calling our mailing functions. We’ll name it &lt;em&gt;setupBananaCountEmailsSchedule&lt;/em&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function setupBananaCountEmailsSchedule() {
  ScriptApp.newTrigger('bananaDailyReport')
      .timeBased()
      .everyDays(1)
      .atHour(23)
      .create();

   ScriptApp.newTrigger('bananaMonthlyReport')
      .timeBased()
      .onMonthDay(30)
      .atHour(23)
      .create();
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That would be all. But if at some point you decide to delete these triggers, you can use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function deleteBananaCountEmailSchedule() {
  const allTriggers = ScriptApp.getProjectTriggers();

  allTriggers.forEach(function(trigger) {
    if (['bananaDailyReport', 'bananaMonthlyReport'].indexOf(trigger.getHandlerFunction()) &amp;gt; -1) {
      ScriptApp.deleteTrigger(trigger);
    }
  })
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You’ll still be able to trigger daily and monthly reports manually but nothing will be sent out automatically. Hopefully, the minions will continue working as usual. 😉&lt;/p&gt;

&lt;h2&gt;
  
  
  Other considerations
&lt;/h2&gt;

&lt;p&gt;To make things simpler, an automated email script can fetch all the necessary details from a spreadsheet. It doesn’t look pretty but can be useful in some situations. For a specific example with a code, check out Google Developer pages.&lt;/p&gt;

&lt;p&gt;We hope you found our guide to how to &lt;a href="https://mailtrap.io/blog/send-emails-from-google-sheet/"&gt;send email from google spreadsheet&lt;/a&gt; useful. It was initially published in the Mailtrap Blog. Until next time!&lt;/p&gt;

</description>
      <category>email</category>
      <category>google</category>
    </item>
  </channel>
</rss>
