{"id":130,"date":"2019-04-14T13:09:32","date_gmt":"2019-04-14T10:09:32","guid":{"rendered":"https:\/\/lyubomir-angelov.com\/?p=130"},"modified":"2019-04-14T01:11:06","modified_gmt":"2019-04-13T22:11:06","slug":"how-to-send-emails-that-are-not-marked-as-spam","status":"publish","type":"post","link":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/","title":{"rendered":"How to send emails that are not marked as SPAM?"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"665\" src=\"https:\/\/lyubomir-angelov.com\/blog\/wp-content\/uploads\/2019\/04\/emails-not-marked-as-spam.jpg\" alt=\"\" class=\"wp-image-131\" srcset=\"https:\/\/lyubomir-angelov.com\/blog\/wp-content\/uploads\/2019\/04\/emails-not-marked-as-spam.jpg 1000w, https:\/\/lyubomir-angelov.com\/blog\/wp-content\/uploads\/2019\/04\/emails-not-marked-as-spam-300x200.jpg 300w, https:\/\/lyubomir-angelov.com\/blog\/wp-content\/uploads\/2019\/04\/emails-not-marked-as-spam-768x511.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n<p>Recently I helped one company to prevent common emails for registrations and etc. to be marked as SPAM automatically from users mailboxes.<\/p>\n<p>When you are using third-party service like MailChimp and with your own domain to send your emails you have to do several steps to prove all mailboxes that you are you and that you are not some spammer.<\/p>\n<p><!--more--><\/p>\n<p>To do that all services will have instructions on how to set DKIM and SPF records to your domain name that you will be using for sending the email. Usually, I create a subdomain like <code>mail.example.com<\/code>, then we have to add those DKIM and SPF records provided by the service.<\/p>\n<p>They represent texts which tell to mailboxes that you are using different service for sending emails then your own server<\/p>\n<p>MailChimp examples are:<\/p>\n<pre><code class=\"bash language-bash\">    \u2022 DKIM:\n    Create a CNAME record for k1._domainkey.yoursite.com with this value: dkim.mcsv.net.\n\n    \u2022 SPF:\n    Create a TXT record for yoursite.com with this value: v=spf1 include:servers.mcsv.net ?all\n<\/code><\/pre>\n<p>If you follow all the instructions of the service you will have a subdomain with DKIM and SPF records and then you should be ready to send all your newsletters and common emails with no problems.<\/p>\n<p>Despite the above configurations, mailboxes like Gmail might mark your emails as SPAM. Why? Because there is one last step that you have to configure when sending emails.<br>\nYour <strong>From<\/strong> record have to match the sender, otherwise, it is not trusted.<\/p>\n<p>Let&#8217;s give an example:<\/p>\n<pre><code class=\"bash language-bash\">    Received: by mail.example.com\n    From: info@example.com\n    To: someuseremail@gmail.com\n<\/code><\/pre>\n<p>In that example, the domain that the service is using for sending the email is different from the domain that is used in the <em>From<\/em>.<\/p>\n<p>But if you change that to:<\/p>\n<pre><code class=\"bash language-bash\">    Received: by mail.example.com\n    From: yourfriends@mail.example.com\n    To: someuseremail@gmail.com\n    Reply-to: info@example.com\n<\/code><\/pre>\n<p>Emails won&#8217;t be marked as spam because sender domain and email <em>From<\/em> domain are the same.<br>\nWith <strong>Reply-to<\/strong> when the user wants to reply to our email, he will write not to <em>yourfriends@mail.example.com<\/em> but to what we defined in <em>Reply-to<\/em>.<\/p>\n<p>Hope that will help someone with his emails. \ud83d\ude42<\/p>","protected":false},"excerpt":{"rendered":"<p>Recently I helped one company to prevent common emails for registrations and etc. to be marked as SPAM automatically from users mailboxes. When you are using third-party service like MailChimp and with your own domain to send your emails you have to do several steps to prove all mailboxes that you are you and that &hellip; <a href=\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to send emails that are not marked as SPAM?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[23,24,25],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-email","tag-mailchimp","tag-mailgun"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to send emails that are not marked as SPAM? - Lyubomir Angelov<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to send emails that are not marked as SPAM? - Lyubomir Angelov\" \/>\n<meta property=\"og:description\" content=\"Recently I helped one company to prevent common emails for registrations and etc. to be marked as SPAM automatically from users mailboxes. When you are using third-party service like MailChimp and with your own domain to send your emails you have to do several steps to prove all mailboxes that you are you and that &hellip; Continue reading &quot;How to send emails that are not marked as SPAM?&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\" \/>\n<meta property=\"og:site_name\" content=\"Lyubomir Angelov\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-14T10:09:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-13T22:11:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lyubomir-angelov.com\/blog\/wp-content\/uploads\/2019\/04\/emails-not-marked-as-spam.jpg\" \/>\n<meta name=\"author\" content=\"Lyubomir\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@angelovcode\" \/>\n<meta name=\"twitter:site\" content=\"@angelovcode\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lyubomir\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\"},\"author\":{\"name\":\"Lyubomir\",\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92\"},\"headline\":\"How to send emails that are not marked as SPAM?\",\"datePublished\":\"2019-04-14T10:09:32+00:00\",\"dateModified\":\"2019-04-13T22:11:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\"},\"wordCount\":307,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92\"},\"keywords\":[\"email\",\"mailchimp\",\"mailgun\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\",\"url\":\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\",\"name\":\"How to send emails that are not marked as SPAM? - Lyubomir Angelov\",\"isPartOf\":{\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#website\"},\"datePublished\":\"2019-04-14T10:09:32+00:00\",\"dateModified\":\"2019-04-13T22:11:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lyubomir-angelov.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to send emails that are not marked as SPAM?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#website\",\"url\":\"https:\/\/lyubomir-angelov.com\/blog\/\",\"name\":\"Lyubomir Angelov\",\"description\":\"The life of a Manager\",\"publisher\":{\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lyubomir-angelov.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92\",\"name\":\"Lyubomir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f6b8c15868355fa857fad18647aeadd07814e3d9baa72a1c92e718056684fec7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f6b8c15868355fa857fad18647aeadd07814e3d9baa72a1c92e718056684fec7?s=96&d=mm&r=g\",\"caption\":\"Lyubomir\"},\"logo\":{\"@id\":\"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/twitter.com\/angelovcode\"],\"url\":\"https:\/\/lyubomir-angelov.com\/blog\/author\/superfly\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to send emails that are not marked as SPAM? - Lyubomir Angelov","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/","og_locale":"en_US","og_type":"article","og_title":"How to send emails that are not marked as SPAM? - Lyubomir Angelov","og_description":"Recently I helped one company to prevent common emails for registrations and etc. to be marked as SPAM automatically from users mailboxes. When you are using third-party service like MailChimp and with your own domain to send your emails you have to do several steps to prove all mailboxes that you are you and that &hellip; Continue reading \"How to send emails that are not marked as SPAM?\"","og_url":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/","og_site_name":"Lyubomir Angelov","article_published_time":"2019-04-14T10:09:32+00:00","article_modified_time":"2019-04-13T22:11:06+00:00","og_image":[{"url":"https:\/\/lyubomir-angelov.com\/blog\/wp-content\/uploads\/2019\/04\/emails-not-marked-as-spam.jpg"}],"author":"Lyubomir","twitter_card":"summary_large_image","twitter_creator":"@angelovcode","twitter_site":"@angelovcode","twitter_misc":{"Written by":"Lyubomir","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#article","isPartOf":{"@id":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/"},"author":{"name":"Lyubomir","@id":"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92"},"headline":"How to send emails that are not marked as SPAM?","datePublished":"2019-04-14T10:09:32+00:00","dateModified":"2019-04-13T22:11:06+00:00","mainEntityOfPage":{"@id":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/"},"wordCount":307,"commentCount":0,"publisher":{"@id":"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92"},"keywords":["email","mailchimp","mailgun"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/","url":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/","name":"How to send emails that are not marked as SPAM? - Lyubomir Angelov","isPartOf":{"@id":"https:\/\/lyubomir-angelov.com\/blog\/#website"},"datePublished":"2019-04-14T10:09:32+00:00","dateModified":"2019-04-13T22:11:06+00:00","breadcrumb":{"@id":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/lyubomir-angelov.com\/blog\/how-to-send-emails-that-are-not-marked-as-spam\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lyubomir-angelov.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to send emails that are not marked as SPAM?"}]},{"@type":"WebSite","@id":"https:\/\/lyubomir-angelov.com\/blog\/#website","url":"https:\/\/lyubomir-angelov.com\/blog\/","name":"Lyubomir Angelov","description":"The life of a Manager","publisher":{"@id":"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lyubomir-angelov.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/5e091f5c2fa79f57d30d482a7ef8cd92","name":"Lyubomir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f6b8c15868355fa857fad18647aeadd07814e3d9baa72a1c92e718056684fec7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f6b8c15868355fa857fad18647aeadd07814e3d9baa72a1c92e718056684fec7?s=96&d=mm&r=g","caption":"Lyubomir"},"logo":{"@id":"https:\/\/lyubomir-angelov.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/twitter.com\/angelovcode"],"url":"https:\/\/lyubomir-angelov.com\/blog\/author\/superfly\/"}]}},"_links":{"self":[{"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":3,"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/posts\/130\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyubomir-angelov.com\/blog\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}