Do Not Email Using Obfuscated Email Addresses If you want to use plain text email addresses use http://www.emporiumplus.com/v5/tk_noemail_alternate.txt "how to" doc 1) A Do Not Email registry can be created with the Tool Kit version 5.270 or newer. Create a new page template with the code NOEMAIL and the name Do Not Email. Below is the code for the template. Near the end of the template you will see the line I have commented out that line. See the use of the Tool Kit function smtp. It discusses an example for sending you an email notification when customers land on the page referenced, in this case a page called VISITED. It is useful to see who and how many are opting out of your emails. I'd recommend setting that up after you get the Do Not Email working. Change the YOURDOMAIN in the urls referenced below and create links consistent with your domain. Change the wording in the paragraphs to relate to your products. &mvt:store:name;: Do Not Email

Do Not Email

The email address &mvte:global:clear_email; has been added to our Do Not Email registry. You will still get order emails when you place an order. You may also get product recall emails.

If you decide that you want to be removed from the Do Not Email registry so that you can again receive promotional and informational emails which can benefit your store, click your email address &mvte:global:clear_email;
The email address &mvte:global:clear_email; has been removed from our Do Not Email registry. You will receive order emails when you place an order, in addition to product recall, promotional and informational emails.

If you want to be placed back on the Do Not Email registry and only receive order emails when you place an order along with product recall emails, click the email address &mvte:global:clear_email;
2) The emails you are going to include the opt out link in must be in a version of the module that supports it. Any 3rd party module can be written to use this registry. I am in the process of converting some of mine. As example, this is the paragraph I added to the Follow-on Contact emails. If you want to be placed on the Do Not Email registry and only receive emails when you place an order or when there is a product recall, click the email address %DoNotEmail% The Follow-on Contact module version 5.022 or newer has code in it that will replace the tokens %DoNotEmail% and %DoNotEmail_E% with the 'to' address the email is being sent to. If the email recipient clicks the link they will land on the page NOEMAIL and pass the 'add' action and email address to the Tool Kit donotemail_e function. With the Follow-on Contact module four things need to happen to prevent someone from receiving those emails. a) You need to be using Tool Kit 5.270 or newer, b) You need to be using Follow-on Contact 5.022 or newer, c) The tokens %DoNotEmail% and %DoNotEmail_E% must be in the follow on email template, d) The customer would have to click the link to be placed on the Do Not Email registry. You can suspend Tool Kit wait list emails by adding the opt out code to the WAITLIST_EMAIL page template, e.g. If you want to be placed on the Do Not Email registry and only receive emails when you place an order or when there is a product recall, click the email address %DoNotEmail% Keep in mind, this action will also remove you from receiving wait list emails. This registry can be used for any module written to interface with it. So, as example, you use the Restock Shelves module to send emails to customers who have abandoned carts and offer them a coupon to come back and make the purchase. If you have a version of the module that supports it, you can include the tokens %DoNotEmail% and %DoNotEmail_E% in the email template and it will know to check the registry before sending emails. If you do not include that token, the module will skip the registry check and send them emails even if they opted from the Follow-on Contact emails. This may upset customers who've told you they only want order emails from you. So if you are going to offer a Do Not Email option, you probably should do it with all modules which send non-order emails. If you are using the Tool Kit smtp function to send emails from page templates and you want to verify the Do Not Email status, you can wrap the smtp with a conditional. Here is an example for sending an email thanking a customer for writing a product review in the RRPROD page template. If they are in the registry, nothing happens, If not, they get the RR_EMAIL. Note: you will use the non-obfuscated function donotemail since the customer:bill_email is not obfuscated. 3) This paragraph is only for module developers who want to access the database to see if the person has included their email in the Do Not Email registry. If you are not writing modules, ignore this section. Note: If a record is found, the email is in the registry. The fields are noemail (email address), added (unix time), and ip (ip address).