{"id":644,"date":"2020-08-13T10:57:43","date_gmt":"2020-08-13T09:57:43","guid":{"rendered":"https:\/\/www.graphicz.co.uk\/blog\/?p=644"},"modified":"2020-08-13T10:57:45","modified_gmt":"2020-08-13T09:57:45","slug":"add-an-unsubscribe-mail-header","status":"publish","type":"post","link":"https:\/\/www.graphicz.co.uk\/blog\/add-an-unsubscribe-mail-header\/","title":{"rendered":"Add an Unsubscribe mail header"},"content":{"rendered":"\n<p>Email deliverability seems to be an increasing problem these days. One issue that can be flagged by mail-tester.com if you use the email address it gives to send an email from the oeredsr tab in Sellerdeck is that your message does not contain a List-Unsubscribe header.<\/p>\n\n\n\n<p>This is easily remedied in Selerdeck. First you need an unsubscribe email address on your domain. It needs checking regularly so maybe make it a forwarder to your main email address. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">unsubscribe@graphicz.co.uk<\/pre>\n\n\n\n<p>The you need a URL where the customer can be directed to im order to unsubscribe, either a custom page or maybe the contact us page.<\/p>\n\n\n\n<p>The header will then look something like this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>List-Unsubscribe: &lt;mailto: unsubscribe@graphicz.co.uk?subject=unsubscribe>, &lt;http:\/\/www.graphicz.co.uk\/https:\/\/www.graphicz.co.uk\/contact.php><\/code><\/pre>\n\n\n\n<p>If you open the file &#8216;SmtpLibrary.pm&#8217; and search for: &#8211;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>my $mail_headers<\/code><\/pre>\n\n\n\n<p>You will see all of the email headers there, so I think you should be able to add it just above: &#8211;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"MIME-Version: 1.0\\n\";<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>my $mail_headers =\t\"From: $mail_from\\n\".\n\"To: $mail_to\\n\".\n\"Reply-to: $mail_replyTo\\n\".\n\"Subject: \".encode('MIME-Header', $mail_subject).\"\\n\".\n\"Date: $sNow\\n\";\n\"List-Unsubscribe: &lt;mailto: unsubscribe@graphicz.co.uk?subject=unsubscribe>, &lt;https:\/\/www.graphicz.co.uk\/contact.php>\";\n\"MIME-Version: 1.0\\n\";<\/code><\/pre>\n\n\n\n<p>Then upload and test. Provided without warranty express or implied. Thanks to Gary Green at Sellerdeck Support<\/p>\n\n\n\n<p>It is also worth adding a DMARC record to your domain name&#8217;s Zome editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> _dmarc.graphicz.co.uk  v=DMARC1; p=none<\/code><\/pre>\n\n\n\n<p>And in the Sellerdeck Page type &#8216;HTML Email Cart&#8217; remove the cmpany logo leaving the company name in plain text and replace <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;actinic:variable name=\"CatalogHomeURL\" \/>\n\n&lt;actinic:variable name=\"CatalogURL\" \/>info.html<\/code><\/pre>\n\n\n\n<p>with the hard coded domain name and info page link as the variables do not always work in the recipient email<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Email deliverability seems to be an increasing problem these days. One issue that can be flagged by mail-tester.com if you use the email address it gives to send an email from the oeredsr tab in Sellerdeck is that your message<span class=\"ellipsis\">&hellip;<\/span> <a href=\"https:\/\/www.graphicz.co.uk\/blog\/add-an-unsubscribe-mail-header\/\"><\/p>\n<div class=\"read-more\"><b>Read more &#8250;<\/b><\/div>\n<p><!-- end of .read-more --><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-644","post","type-post","status-publish","format-standard","hentry","category-graphicz-articles"],"_links":{"self":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts\/644"}],"collection":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=644"}],"version-history":[{"count":1,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts\/644\/revisions"}],"predecessor-version":[{"id":645,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts\/644\/revisions\/645"}],"wp:attachment":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}