=== TEG-MARKETER — Smart Marketing for Small Businesses ===
Contributors: theeldestgeek
Tags: email marketing, newsletter, rfm, segmentation, woocommerce
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.13.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

E-mail marketing that runs inside your own WordPress, for any small business:
one contact list, smart segments, campaigns that send themselves, and results
you can point at - with no per-contact pricing and no customer data leaving
your server.

== Description ==

The big e-mail platforms charge by the contact, so the bill grows with your
success, and they keep your customer list on their servers. TEG-MARKETER is
the marketing engine of TEG-WPMARKET rebuilt as a TEG shop: it runs on the
site you already pay for, and it does not need WooCommerce.

**One contact list.** Contacts with consent status (subscribed, pending,
unsubscribed, cleaned), tags, where they came from and notes. Import a CSV or
JSON file (column names are recognised for you), add people by hand, from the
signup form (double opt-in; the shortcode is `[teg-marketer-signup]`, options `button` and `first_name`), or from the TEG Companion phone app.

**Fed by what you already have - no switch to find.** Data sources bring
customers and their paid orders in automatically: WooCommerce the moment it is
active (live as orders are paid, refunds drop out, and the existing order
history is brought in by a first background sync), TEG-SALON clients and sales
when the salon shop is on the same site, and every TEG shop that carries the
shared marketing feed (TEG-REPAIRSHOP first) - each appears as its own source
with its customers' newsletter choice and paid purchases, a customer's change
in the shop reaches the list at once, and an unsubscribe here is written back
to the shop. Without WooCommerce everything else keeps working: the
WooCommerce-only e-mails simply step aside.

**Customer intelligence.** Profiles from every source: orders, spend, average
order, favourite categories, lifecycle stage (new, active, at risk, lapsed),
RFM scores and segments (Champions, Loyal, Can't lose them ...) and
engagement segments from real opens and clicks.

**Campaigns.** Your own campaigns to a segment, tags, a custom selection or a
hand-picked list, sent in background batches, scheduled or repeating, with
drip follow-ups. A/B subject tests: a stable 50/50 split, or auto-winner (a
20% sample, a wait, then the rest gets the better-opening subject).

**Automations and lifecycle e-mails.** Win-back and interest promotions over
any source; product recommendations, back-in-stock alerts, abandoned carts and
review requests with WooCommerce; a welcome series for new subscribers.

**Results.** Opens, clicks, per-variant open rates, coupon redemptions
(WooCommerce) and click-through revenue from your own orders.

**Deliverability guardrails.** Batching, hourly caps, a send window,
frequency caps, automatic dead-address suppression, a sunset policy, bounce
webhooks (Postmark, Mailgun, SendGrid, Amazon SES), SMTP presets, and RFC 8058
one-click unsubscribe.

**Privacy.** WordPress personal-data export and erasure; erased addresses are
suppressed for good. Invoices you sent a client, and the payments on them, are
kept when the client is erased - they are financial records kept for tax
records, each with the name and e-mail it was billed to - and are included in
the client's data export. The suggested privacy-policy text (Settings >
Privacy) says so.

**AI copywriting (Pro) - your own Anthropic key.** Claude writes subjects and
copy in your brand voice. You enter YOUR OWN Anthropic API key under Settings >
AI copywriting: the plugin ships with no key and never uses anyone else's,
Anthropic bills your own account directly at its published price with no
markup, and you set the spend limit in the Anthropic console. With the default
model (Claude Haiku 5.5: $0.10 / $0.50 per million input / output tokens,
Anthropic's price list, October 2026) a campaign e-mail costs well under one
cent to write. The key stays on your server - masked on screen, never sent to
the phone app, never in an export or a log - and a "Test the key" button says
in plain words whether it works. Only first names and purchase facts are sent,
never e-mail addresses. How to get a key: Help > AI copywriting.

**Agency invoicing.** An agency can bill its own clients here: invoices with
free-text lines and your region's tax, e-mailed with a link where the client
sees the invoice and pays online. Takes card payments online through your own
Square, Stripe or PayPal account (card details never touch your server), and
Square Terminal at the counter; payments recorded by hand (cash, check, bank
transfer, Zelle in the US) and refunds. Monthly retainers repeat by
themselves, once a month. Paid invoices count as the client's purchases in
the segments. Payments CSV included.

**TEG Companion.** Pair a phone under Setup > Device pairing: search contacts, see
consent and tags, add notes, add a contact at the counter, watch campaigns and
pause or resume them, and see the stats card.

**Licensing.** Like the rest of the TEG family: a 30-day Pro trial is baked in
and counts from the first run. Without a licence the plugin keeps working on
the free allowance (one custom campaign, ten hand-picked recipients, no AI,
no phone app).

**Why not Mailchimp, Klaviyo, Omnisend, ActiveCampaign, Brevo or Constant
Contact?** They rent you the list. At 10,000 contacts their comparable plans
come to roughly $7,900 (Omnisend), $8,900 (ActiveCampaign), $9,000
(Mailchimp), $9,600 (Constant Contact) and $10,500 (Klaviyo) over five years,
and $23,000 to $43,000 at 50,000 contacts - and they go up again every time
the list grows. TEG-MARKETER is one license (yearly, or once for life) at any
list size, your customer data never leaves your server, AI writing is at
Anthropic's own price with no markup, the TEG Companion phone app is included,
it feeds on WooCommerce AND your other TEG shops' customers, and RFC 8058
one-click unsubscribe and GDPR export / erasure are built in. (Monthly list
prices x 60; sources and dates in docs/COMPARISONS.md - TEG-WPMARKET's July 2026
price survey and the vendors' own sites, read 16 October 2026. Brevo, which
prices by e-mails sent, is about $1,740 over five years at four campaigns a
month - and still keeps your list on its servers.)

== Installation ==

1. Upload the `teg-marketer` folder to `/wp-content/plugins/` and activate it.
2. Open TEG-MARKETER > Dashboard and follow "Set up your shop" - or press
   "Try it with sample data" to look around a sample business first.

== Frequently Asked Questions ==

= Do I need WooCommerce? =
No. The contact list is the core. WooCommerce adds its customers and orders,
recommendations, coupons, back-in-stock, abandoned carts and review requests.

= How is mail sent? =
Through WordPress (wp_mail), or an SMTP remailer set up under Settings >
Sending. For volume use a proper relay and set up SPF and DKIM.

= Is AI required? =
No. Every campaign works from templates and merge tags. Until you add your own
Anthropic API key the AI buttons are greyed out with a pointer to Settings >
AI copywriting.

= Can I invoice my clients and take card payments? =
Yes (1.9.0). Billing > Invoices: make an invoice for a contact, send it, and the
client pays on the invoice's page by card through your own Square or Stripe
account, or PayPal - set them up under Settings > Invoices and payments. Money
goes straight to your own account; nothing passes through us. The demo site
never takes money.

= Can the shop run in Spanish? =

Yes. Open Settings > Language and pick Español as the Shop language. Each person can still choose their own language for their own screens under Users > Profile > My language in the shop; campaign e-mails and their footers, the sign-up confirmation, the unsubscribe pages and invoices always use the shop language. Text you write yourself is never translated. More languages appear in the list as they become available, with no update to install. Language packs need the Pro edition; a language already on the site keeps working without it. Anything not translated yet shows in English.

= My WordPress is in Spanish but the shop is still in English. =

That is on purpose until at least half of TEG-MARKETER is translated into that language. Pick Español under Settings > Language (or Users > Profile > My language in the shop) to use it now.

= Whose AI account pays? =
Yours, directly. You create a key at console.anthropic.com (add billing, then
Settings > API keys > Create key), paste it into TEG-MARKETER once, and set a
monthly spend limit in the Anthropic console. There is no markup and nothing
goes through us.

== Changelog ==

= 1.13.2 =
* The signup form shortcode [teg_marketer_signup] is now [teg-marketer-signup]. The old name no longer works.

= 1.13.1 =
* "What's new" no longer opens by itself after an update. The dashboard has a button "What's new in <version>"; press it to read the notes.

= 1.13.0 =
* The TEG Companion and TEG Rover phone apps can show their screens in another language when your shop has the Pro edition and a language pack. This needs the next update of the apps; until then nothing changes.
* A campaign, template or text message opened for a preview on the phone always shows exactly what your contacts get, in the shop language.
* Menu refresh.

= 1.12.0 =
* New Language screen in Settings. Pick the language the shop runs in; each person on your team can also choose their own language for their own screens (under Users > Profile > My language in the shop).
* The shop now has a language of its own for everything your customers and contacts receive: campaign e-mails and their footers, sign-up confirmations, unsubscribe pages, invoices and their e-mails, pop-ups, landing pages and text messages. What a customer gets no longer depends on who clicked the button. Text you write yourself is never translated.
* Notes the shop writes for you (contact notes, e-mail log messages, bounce reasons, the starter wording of pop-ups, landing pages and text-message replies) also follow the shop language.
* Language packs (Spanish first) arrive later and need the Pro edition. Until a pack is installed, everything stays in English exactly as before.
* Card payments and text messaging parts updated to their latest versions.

= 1.11.3 =
* The demo and sample data now read like a real shop: e-mails go out and get opened at sensible daytime hours, products have real names, no customer orders before they joined, and customers' stages (new, active, at risk) agree with how they really buy.
* The sample contacts use clearly fake "example" addresses in several domains, so "Clean the list" no longer flags them all as bad.
* A contact's "E-mails sent" list now shows the newest e-mail first.
* A paused campaign that was never sent now shows the date it was scheduled for in the Campaigns list, the same as in TEG Companion.

= 1.11.2 =
* TEG Companion reports can show older months too (this month, last month and up to 10 more; set how many in Companion).

= 1.11.1 =
* Payments: the currency symbol always matches the currency (a US shop never shows £).

= 1.11.0 =
* Dates now follow your region: US shops see 03/14/2026 and 2:30 pm, UK shops 14/03/2026 and 14:30, EU shops their country's own way - on every screen, print, e-mail and in TEG Companion and TEG Rover. WordPress's own date setting no longer leaks in. Leave the date format blank to follow the region, or type your own; documents already issued keep the dates they were issued with.
* TEG Companion now learns the shop's date format when it connects, so the phone writes and reads dates the same way the shop does.
* "The results run by themselves ...", the send-speed finish time and a social account's "connected until" date are written your region's way.

= 1.10.1 =
* Companion: a campaign shows Sent, Opens, Clicks and Revenue once (they were listed twice). Revenue left out because it is in another currency is shown on its own line when there is some.
* Companion: a campaign no longer shows its audience a second time as "All subscribed contacts / Contact" - the Audience line says who it goes to.
* Companion: campaign times are in your site's date and time format, without seconds ("Nov 8, 2026 9:45 pm", not "2026-11-08 21:45:08").

= 1.10.0 =
* New: Campaign results. After a newsletter, the bounce notices and automatic replies that land in your mailbox are read for you and sorted into three lists: "Invalid e-mails" (the address does not exist any more, the domain is wrong - with the likely typo fix, such as yahoo.con to yahoo.com - the mailbox is full and abandoned, or a reply says the person has left), "Needs approval" (their mail system wants you to fill in an approve-sender form or ask to be unblocked - the link is kept for you - and every rejection that is not clear, so a doubt never stops your mail), and "Unsubscribed" (who clicked Unsubscribe, so you can call and check for a mistaken click). Out-of-office replies and "we will keep trying" notices are not counted.
* Each contact now shows an e-mail status: OK, Invalid email, Needs approval or Unsubscribed, in the contact list (with a filter) and on the contact. Invalid addresses are never e-mailed again. Needs approval contacts keep getting your e-mails; press "Mark approved" once you are on their allowed list. Unsubscribed contacts stay in your list and in the campaign - only marked, never removed - and are not e-mailed. Got a new address on the phone? Edit the contact: a new e-mail address starts again at OK. You can also set the status by hand.
* The campaign screen has a Results panel with the three lists (name, phone, e-mail, reason, link), CSV downloads and a "Scan mailbox & send results now" button. One day after a campaign has finished sending (you can change the hours), you get three e-mails - "Campaign results 1/3: invalid e-mails (call these)", "2/3: need approval", "3/3: unsubscribed" - each with the list and a CSV file. All three are sent even when a list is empty, so you know it ran. Bounces that arrive later are added to the results every day for two weeks. Works for campaigns already sent too: press "Scan mailbox & send results now" on the campaign.
* Set it up under Settings > Campaign results: the mailbox your campaigns are sent from (server, user name, password, the folders to read, e.g. INBOX and the folder your mail rules move bounces into) and who gets the results. "Test connection" checks it. The mailbox is only read - nothing is deleted or moved (you can choose to have the bounce messages marked as read).
* New: "Why are you leaving?" After someone unsubscribes (still one click - nothing is asked first), the page offers an optional choice - too many e-mails, not relevant to me, a problem with the shop, I never signed up, other - and a comment box. You see the answer in the Unsubscribed list, on the contact, in the results e-mail and in TEG Companion; "A problem with the shop" is highlighted so you can call first.
* New: the unsubscribe follow-up note. From the Unsubscribed list or the contact you can send one short personal note (plain text, no pictures or tracking) asking what could be better, with a link to rejoin - "Send note" per person or "E-mail all not yet contacted". Nothing is sent automatically. Each person gets it at most once, only within 30 days of unsubscribing (you can change this), and by default never to contacts in the EU or the UK. The rejoin link opens a page with a "Yes, resubscribe me" button - simply opening the link changes nothing - and works once. Write your own subject and message under Settings > Campaign results > Unsubscribe follow-up; the default is a friendly note signed with your From name. Every other e-mail still skips people who unsubscribed.
* New: Settings > Sending service - choose your own server (the default), Amazon SES, Postmark, Mailgun, SendGrid, Brevo, Mailjet or another SMTP service on one screen, with a rough price per 1,000 e-mails beside each, step-by-step sign-up in plain words, the fields each one needs, the webhook address to paste into the service, a "Send test" button and a "Check webhook" status. You can use a service for campaigns only and keep your own server for one-to-one shop mail. Brevo and Mailjet now report bounces and spam complaints back too.
* New: spam complaint reports (the Yahoo and Microsoft feedback loops) for mail sent from your own server, by webhook or read from the results mailbox. Each report takes the person off your list for good and counts as a complaint on the campaign - it is never mistaken for a bounce. Steps to sign up are on the Sending service tab. Campaign e-mails now carry a small hidden tracking line and their own message id, so a bounce or a report is matched to the exact e-mail even when the address is hidden or the reply comes from another address.
* New: Deliverability (under Results), with three tabs. List check: every address is checked - written correctly, a typo in the domain (gmial.com, yahoo.con, hotmial.com ... with the fix, one click or "Fix all"), a throwaway address, a shared address (info@, sales@, noreply@), and whether the domain really has a mail server. Big lists are checked a bit at a time in the background. You can also check a file before you import it. An address that cannot receive mail is marked Invalid email on the contact; a likely typo is marked Needs approval until you fix or confirm it.
* Before the first send the campaign screen shows "N of M addresses look bad" and stops the send when more than 2% look bad, unless you tick "Leave out the addresses that look bad" or "Send anyway". It also shows how long the send will take and when it should finish.
* Sending speed: each mail provider gets at most so many of your e-mails an hour (Yahoo/AOL 200, Outlook 300, Gmail 600, iCloud 300, everyone else 600 - you can change them), so a big newsletter is spread over a few hours instead of being turned away. Warm-up for a new server: a small first day that doubles daily, the people who open most go first.
* Reputation: delivered, bounced, spam complaints and unsubscribes for the last 30 days and per campaign (the bounces found by Campaign results included), with green / amber / red against the providers' limits, per provider, and links to Google Postmaster Tools, Yahoo Sender Hub and Microsoft SNDS. A sending campaign pauses by itself when its first e-mails bounce too much (over 5%) or get spam complaints (over 0.3%), shows why, and you get an e-mail.
* New: Automation paths (Campaigns > Automation paths) - build your own automations on a flowchart. A path starts when something happens (someone gets a tag, signs up through your form, buys, leaves a cart, has a birthday, reaches a date on their record, has not bought for a while, opened or clicked a campaign, or you add them by hand), then takes each person through your steps: send an e-mail, wait, a yes / no choice, add or remove a tag, change a detail, tell you, stop. The builder checks the path as you go before it can be switched on; save it as a draft, switch it on, pause it. Five ready-made recipes: welcome series, thank-you + review request, win-back, abandoned cart (3 reminders) and birthday coupon. People who unsubscribe, bounce, are marked Invalid email or are suppressed leave every path at once; e-mails wait for your send window and hourly limit. Each path shows who entered, who is in it now, who finished, the e-mails sent, opens, clicks and the revenue from clicks. The existing automations keep working as before. Without a license one path can be on at a time.
* New: Sign-up forms (Marketer > Sign-up forms). Pop-ups: a box in the middle of the screen, a slide-in in the corner or a bar across the top that asks visitors to join your list - after a few seconds, when they scroll down, or when they go to leave the page (computers). Choose the pages it shows on, whether it shows on phones, and how many days it stays away after someone closes it or signs up. People already on your list never see it. It works with the keyboard and screen readers and does not move your page around.
* New: Landing pages - a simple page of its own with a headline, text, a picture and a sign-up form or a button, inside your website's header and footer or as a clean full-width page. Four starting points: newsletter sign-up, event sign-up, offer / coupon and free download. Forms and landing pages use your normal sign-up settings (confirmation e-mail, tags), tag new subscribers with where they came from, can e-mail a gift (a one-time discount code with WooCommerce and/or a download link) once they confirm, and show views, sign-ups, confirmed and the sign-up rate.
* New: e-mail templates (Campaigns > Templates). 16 ready-made layouts - newsletter, announcement, sale with a coupon, special offer, new product, back in stock, event invitation, holiday greetings, welcome, thank you, ask for a review, we miss you, service reminder, monthly digest, simple letter and photo story - each shown as a picture of the finished e-mail in your own logo and colours. "Use this template" makes a new draft from it. Keep one of your own campaigns as a template with "Save as a template".
* New: your own templates. "New template" (blank, or starting from any gallery template) with the sections editor; "Import HTML" (paste it or upload an .html file) - scripts, forms and frames are removed, you are warned about pictures loaded from other websites, and the placeholders found (such as {first_name}) are listed. Put {unsubscribe_link} where your unsubscribe link goes; without it the standard unsubscribe line is added. Every e-mail has exactly one unsubscribe link: when your template has its own, the footer leaves its link out.
* New: build an e-mail from sections. In the campaign editor choose "Sections" and add headings, text, pictures, buttons, a coloured box, two columns, product picks, a coupon, your latest blog posts, divider lines, empty space and - when TEG-REPAIRSHOP is on the same site - a shop block such as the Adoption corner, then move them up and down or remove them. Campaigns written in the plain editor keep working exactly as before, and you can switch either way.
* New: "Resend to people who did not open". On a sent campaign, set a one-time resend a few days later (3 by default), with a new subject line if you like. It goes only to people who neither opened nor clicked, never to anyone who unsubscribed, bounced, complained, is marked Invalid email or is on the suppression list, keeps your quiet hours and hourly limit, and each campaign is resent at most once.
* New: shop content blocks. With TEG-REPAIRSHOP on the same site, "Insert shop block" in the campaign editor puts its live Adoption corner list into a newsletter - type or insert [ADOPTION CORNER]. It is filled in when the e-mail is sent (everyone in one send gets the same list) and disappears when the list is empty. Set how many and the heading under Campaigns > Shop content blocks.
* New: rename any campaign, also one that is sending or already sent - only the name changes, nothing else.
* New: text message (SMS) campaigns - off until you switch them on under TEG-MARKETER > SMS and social. Only contacts who agreed to texts get them: agreeing to e-mails does NOT count. Record each agreement on the contact; a STOP reply always wins. Texts wait for 8 am where each person lives and stop at 9 pm. Your business name and "Reply STOP to opt out" are added when missing, links are shortened and each click is counted, a live counter shows the characters, the text parts and a cost estimate, and "Save and text me a test" sends one to your own number. Results: sent, delivered, failed, clicks and opt-outs. Test mode is on until you turn it off. The SMS and social page explains the US number registration you do with your provider.
* New: "Also post to social" on e-mail campaigns - off until you switch it on. Connect your own Facebook Page (and its Instagram business account) and LinkedIn Page; when the campaign goes out, a post with your text, an image and a link to the e-mail's web version goes out too. Each post shows whether it went out, or the network's reason if not, with Try again.
* Payments: the shared payments module is brought up to date (the same version as the other TEG shops). It adds an optional "card on file" (off unless you switch it on) and makes PayPal and Square payment checks stricter. Nothing changes for you unless you turn it on.
* TEG Companion: the campaign shows the results counts and the three lists (tap to call, open the approval link), "Mark approved", and - for the owner and the Shop manager - "Scan mailbox & send results now"; contacts show their e-mail status. The app can also rename any campaign, insert a shop block, check the list before sending, list and pause automation paths, start a draft from a template, set a resend to people who did not open, show the sign-up form numbers, and see SMS campaigns.

= 1.9.10 =
* Suggest improvements: Claude now has room to answer on a long newsletter with the larger models (Opus, Fable) - they think first, and a long message was cut off and came back as "could not be read". If an answer is ever cut off, the message now says so and suggests a faster model.

= 1.9.9 =
* New: "Suggest improvements (Claude)" in the campaign editor and in TEG Companion. Claude reads your subject, preview text, heading, message and button and tells you in plain words what to improve (clarity, length, the button, words that look like spam, reading on a phone, a stronger subject). It can offer other subjects, a better preview text and a tidied-up message, side by side with yours - press "Use this" on each one you like, then save as usual. Nothing changes by itself, merge tags and unsubscribe links are kept (a suggestion that drops one is left out), and a try costs well under one US cent on your own Anthropic account. Needs the AI key under Settings > AI copywriting; drafts and scheduled campaigns only.

= 1.9.8 =
* TEG Companion: the newsletter can now be sent to your list from the phone, after a confirm screen that shows how many people will get it (type SEND to go). The owner and anyone with the Shop manager role can send; other staff can still correct drafts and send themselves a test.

= 1.9.7 =
* TEG Companion: a draft or scheduled campaign can now be corrected from the phone - subject (and the second subject of an A/B test), preview text, heading, top-bar title, message and button (shop button, your own label and link, or none). You can preview the e-mail and send a test copy to your own address (up to 5 an hour). Campaigns that have started sending or have been sent cannot be changed, and if the campaign was changed on the website after you opened it, the phone asks you to reload instead of overwriting.

= 1.9.6 =
* New setting "E-mail me when someone unsubscribes" (Settings > Your business, off by default). A short notice for each person who unsubscribes (the link, the page or the mail app's button) or complains: address, name, time, reason, the campaign, a link to the contact and a ready-to-forward "Did you mean to unsubscribe? You can rejoin here" line with a rejoin link. Bounces, imports, hand-added and erased addresses and the sample data send none; a repeat sends none; the person is never e-mailed and their choice is never changed. At most 20 notices an hour, the rest in one summary. It goes out the same way as your campaigns (From address as envelope sender) with no unsubscribe header.
* The confirmation link in the sign-up e-mail now opens a page with a "Confirm my subscription" button; the subscription is made only when the button is pressed. Before, a link scanner or a read-aloud bot that fetched the link confirmed the subscription. Links already in inboxes work through the button.

= 1.9.5 =
* Resubscribe link: opening it (a click, a link scanner, a read-aloud bot, a prefetch) now only shows a page with a "Resubscribe" button. The confirmation e-mail is sent only when the button is pressed, the same way the unsubscribe link works. Before, every fetch sent a confirmation e-mail.
* At most one confirmation e-mail per address per hour, for the signup form and for resubscribe. The old limit counted 5 per visitor address (IP) per hour, which let several quick fetches through.
* Signup confirmation, resubscribe, invoice and digest e-mails now use the same envelope sender (Return-Path) as campaigns, so they are signed for your domain instead of looking like the web host's mail; HTML ones carry a plain-text part, and confirmations carry the List-Unsubscribe headers.
* "Produced by TEG-MARKETER - click here for information" now links to the TEG-MARKETER information page.
* Device pairing with TEG Rover switched off now makes a Companion key (the form has no key-type choice then, and it used to refuse with "This shop does not hand out that kind of phone key"). TEG Rover core 1.9.1 and TEG Companion core 2.14.0 (the phone offline queue).
* TEG Companion: a draft or scheduled campaign can be renamed from the phone (Name field, up to 190 characters, logged). Sent, sending and paused campaigns keep their name; nothing else about a campaign is written from the phone.
* Other plugins' mail is no longer touched by our Return-Path: WordPress reuses one mail object, so the sender we set for a campaign could ride along on the next plugin's message in the same request; it is now put back.

= 1.9.4 =
* Campaign button is now a choice: "No button", "My own button" or "Shop button". Every existing campaign is "Shop button", which is exactly what it did before (your own label and address when typed, otherwise a Shop now / Visit our site button).
* Header title: Settings > E-mail look has a "Header title" for the top bar of every e-mail, used instead of the business name (beside your logo when you have one). Empty by default. A campaign can set its own header title on its form.
* "Produced by TEG-MARKETER - click here for information": a small muted line at the very bottom of the footer. Settings > E-mail look > "Produced by" line turns it off; it is on by default.
* Plain web addresses (https://...) typed into a campaign body become clickable links when the e-mail is built. Text already in a link, and every tag and attribute, is left alone, and the new links are click-tracked like the others.
* Sender fix: every e-mail TEG-MARKETER sends now uses the From address as its envelope sender (Return-Path). Before, WordPress used the web host's own account, so hosts that sign mail only when the two domains match failed DMARC. New "Return-Path address" setting (Settings > Sending), empty = the From address. Other plugins' mail is untouched.
* Settings > Sending > "Check deliverability": DNS and header checks only, nothing is sent. One line per check, each red one with a plain fix: SPF covers this server, a DKIM key is published, DMARC (with its policy), envelope sender domain = From domain, List-Unsubscribe headers, the server IP on Spamhaus ZEN, SpamCop and Barracuda ("could not check" when a list refuses the lookup), and reverse DNS. Answers are kept for a few minutes. Optional "DKIM selector" setting for a key at an unusual name.
* Campaign form: "Send to mail-tester" sends one copy of the campaign (real subject, real path, never the list) to a fresh address at mail-tester.com, a free spam-score checker (about 3 tests a day), and opens its result page.
* Needs a database step (two new campaign columns); it runs by itself on the first admin page after the update and loses nothing.

= 1.9.3 =
* Billing > Invoices: a site whose sample data was loaded before invoices existed now gets the sample's four invoices once (paid, part paid, a monthly retainer and a draft), so the list matches the sample. Only when the sample business is here and there is no invoice at all; "Remove sample data" still removes exactly what it added.
* Tags: a list of tags that arrives with commas inside an item (a TEG shop feed, an import) is split on them - two tags no longer fuse into one ("seriesvalley water"). Tags on the contact list and contact page have a separator between them for copied text and screen readers.
* E-mail log and a contact's "E-mails sent": no subject shows a raw merge tag such as {first_name}; an old row that still holds one reads with that contact's name ("there" when unknown). The sample's A/B e-mails are now logged with each person's name, as real sends are.
* A/B auto-winner: a winner is only picked when the sample that actually went out reaches the minimum (40 by default). A smaller sample - suppressed or failed sends shrink it - picks no winner and the rest keep the 50/50 split. The sample's autumn campaign is now a plain 50/50 test (its 14 coffee people are far below the minimum), with no winner.
* Automations: the welcome e-mail shows "On for signups" when the signup form's own welcome switch sends it, instead of "Off" beside fresh sends; an automation that is off but sent lately says why. The sample's newest subscribers have their welcome e-mails in the log, matching its welcome switch (on).

= 1.9.2 =
* TEG Back Office (when Marketer is the only TEG shop on the site): payroll lists your staff - the Marketer staff role first, then anyone else allowed into the back office, then the administrators; nobody twice.
* Payments module 1.2.0: a bank wire can be recorded by hand in the US (Settings > Payments, "Recorded by hand"); its key is transfer, and an old "wire" still reads Bank transfer.
* Shared modules brought up to date: TEG Companion core 2.13.0 (report card dates follow your date format), TEG Rover core 1.8.0 (Device pairing masks IP addresses).

= 1.9.1 =
* Privacy: erasing a client now keeps the invoices billed to them, and the payments on them, as financial records for your tax records - each with the billed-to name and e-mail as written on it. The marketing contact and its marketing history are erased as before, a monthly repeating invoice stops, and a paid invoice is not added back to their purchase history.
* Privacy: the personal-data export includes the person's invoices and the payments and refunds on them; the suggested privacy-policy text says invoices are kept for tax records.
* Licence: the licence server now names this product TEG-MARKETER (key marketer, the same bit 64). Every code already sold, WP-MARKET codes included, keeps working.

= 1.9.0 =
* Agency invoicing: bill your own clients (invoices with lines, your region's tax and a due date), e-mailed with a link where the client sees and pays the invoice.
* Takes card payments online through your own Square, Stripe or PayPal account, and Square Terminal at the counter; payments recorded by hand (cash, check, bank transfer, Zelle in the US); refunds; signed webhooks; a payments CSV (the shared TEG payments module).
* Monthly retainers: an invoice can repeat every month, made once a month however often the background job runs.
* A paid invoice counts once as the client's purchase (source "Marketer invoice") in profiles and segments.
* Settings > Invoices and payments; the sample business now has four invoices.

= 1.8.7 =
* Licence check knows the new TEG Total Auction Management (TAM) product.

= 1.8.6 =
* Back Office shows as Back Office in Setup; the pairing page is called Device pairing everywhere.

= 1.8.5 =
* The admin menu is grouped the same way as the other TEG shops: Help is now "Help & Tutorials" (in a new Tools group), the phone pairing page is "Device pairing", and Settings is the last row of Setup.

= 1.8.4 =
* The sample customer is now James Rockford.

= 1.8.3 =
* Money in another currency is always written with its own symbol.
* Product names in the licence screen use the new spelling (TEG-DELI, TEG-FOODTRUCK, TEG-BUTCHER, TEG-BAKERY).

= 1.8.2 =
* Money in another currency is written with its own symbol on the TEG Rover cards.

= 1.8.1 =
* TEG Rover collects on an invoice in the currency it was issued in, and its cards count one currency at a time.
* Money from an old currency listed apart under a total is now written that currency's own way (for example $100.00, not 100,00 $).

= 1.8.0 =
* Region setting: one tick switches the shop between the United States, the United Kingdom and the European Union - currency, dates, tax, address wording, spelling and the ways customers can pay. Invoices already issued never change. The sample data now reads as a US business.
* For a marketer that means: money in dollars, pounds or euros written the region's way, dates as 10/28/2026, 28/10/2026 or the EU country's own, UK spelling in the UK and the EU, and a Region tab that lists the e-mail marketing rules of each region (CAN-SPAM, PECR, the ePrivacy Directive and GDPR). Orders mirrored from your shops and campaigns already sent keep the currency they were recorded in.
* Totals and reports now count one currency at a time: after a region switch, money in the old currency is listed apart instead of being added in. The TEG Companion app shows every invoice in the currency it was issued in.

= 1.7.0 =
* Every contact now has one Contact notes box, on the contact's screen and in the Companion app: the general notes first, then the notes from their other records, with who wrote each one and which came from one of your Staff. A marketer keeps its notes on the contact, so today every note sits at the top; the "From ..." part stays empty because a campaign goes to many people and a mirrored order carries no note.
* "Add a note" on the contact's screen is now inside that box (the notes still go where they always went), and a note added on the phone shows in the same list straight away.
* A note added on the phone that could not be saved now says so, instead of reporting success.

= 1.6.1 =
* Report cards on the TEG Companion phone app now open the matching page on your computer: the money cards and "When e-mails get opened" open Results, and the customer cards (repeat customers, regulars to win back, where new contacts come from) open Contacts.
* Card names that fit a marketer: the money cards now say "Revenue from clicks" instead of "Sales before tax" (your figures are order totals), "Average sale" is now "Average order from clicks", "Busiest times" is now "When e-mails get opened", "Regulars to call" is now "Regulars to win back", and "Where new customers come from" is now "Where new contacts come from".
* Clearer dates on the cards: a single day reads "October 1" and a few days read "Jan 5-10", instead of "October 1-1" or "Jan 5, 2031 to Jan 10, 2031".

= 1.6.0 =
* New: report cards on the TEG Companion phone app. Each person picks the cards they want to see, and the cards are grouped in sections (money, customers and so on), so the phone shows what matters to that person.
* New: a Reports cards page on the desktop (under Results). See every card on one page, compare with the last period, the same time last year or dates you choose, set goals, and download the figures as a CSV file or print them.
* New cards for your marketing: revenue from clicks this month (with a matching card on the Results page), today so far (revenue and e-mails sent today), when your e-mails get opened by hour and day, repeat customers, customers you have lost, where your new contacts came from, and the best day and time for each product. Revenue from clicks counts orders by the day they were placed. If you use TEG Rover, its cards appear too.
* New: "Lost customers after N days" under Settings > Audience and sources. It decides when a regular customer counts as lost on the report cards. It is separate from the "Lapsed" stage you already have for your contacts, and changing one does not change the other.
* New: an optional monthly summary e-mail of your report cards. It is off until you switch it on and save.
* The sales tax card explains that this plugin only sees order totals, so the tax figure is in the sales tax report of the shop that took the order.
* Turning the plugin off now also stops its scheduled e-mails.

= 1.5.0 =
* New: TEG Rover, the app for staff out and about, now comes with the plugin. It is switched off until you turn it on under Setup > Phones ("Rover (drivers / field staff)"). Once on, you can send an off-site job you type yourself - putting up posters, dropping off flyers, a site visit - to a team member's phone. TEG Companion phones now pair on the same Phones page; phones you paired before keep working without pairing again.
* New: errands (in TEG Rover). Send a team member to the print shop, the post office or the bank with a ready-made list to pick from; they record what they spent on their phone, you confirm it, and anything paid from their own pocket shows as "to reimburse" until you mark it paid back.
* New: Import from CSV. Bring in your contacts from a spreadsheet: match your columns to ours, do a test run first to see exactly what would happen, then import - and undo a whole import with one click if it was not right. Marketing consent is never assumed: a contact only counts as subscribed if your file says so.
* Better sample data: you can now add the sample coffee-and-books shop beside your own records to try every screen, and take it away again with one click ("Remove sample data") - only the sample is removed, never anything of yours.

= 1.4.0 =
* New: E-mail test mode (Settings > E-mail test mode). Turn it on before going live and every e-mail the site sends - invoices, receipts, reminders, status notes, staff alerts - goes to one address you choose and to nobody else. The subject starts with [TEST to ...] so you can see who it was meant for; the message is exactly what the customer would get. Administrators can switch it from the TEG Companion app too (Settings > E-mail test mode), and a red notice shows on every admin page while it is on. Text messages are not e-mail and still go out.
* TEG Companion: shared Companion core 2.4.0.

= 1.3.0 =
* Monthly mailings keep their day: a series on the 31st goes 31 Jan, 28/29 Feb, 31 Mar, 30 Apr (new campaigns.repeat_day; upgrade step fills it for existing monthly campaigns). DB 1.1.0.2.
* Erased contacts stay erased: the Companion app's quick add / edit and the lifecycle mailings no longer re-create or mail an erased address.
* Updates: an update whose manifest publishes no SHA-256 checksum is never offered or installed.

= 1.2.0 =
* TEG Companion: the store chooses what the phone's home screen shows (owner 2026-10-28: too cluttered). Phones (TEG Companion) has a new section, **Companion home screen defaults**: one checkbox per button, card, list and bottom-bar tab the app's home has at this shop (Buttons / Cards / Lists / Bottom bar) and "Reset to starter set". Ticked = shown by default; each person can still change it on their own phone. app/hello's module rows carry `home` {v: 1, items: [{id, label, group, on}]} - only what that person can see. Never saved = the starter set: every button the app has here on (four or fewer: New <job>, New <customer> and the shop's own extras), every list and tab on. Shared Companion core 2.1.0 (generated; tools/test-companion-home.php).

= 1.1.1 =
* Licences for the new shops: TEG-EVENTCENTER, TEG-LASTDJ and TEG-FARM are known to the licence code, in lockstep with the rest of the family. A bundle licence that includes them is read correctly and names them on the License screen; nothing else changes.

= 1.1.0 =
* TEG shop feeds - RepairShop customers and paid invoices as a data source; licence: uses the WP-MARKET licence (bit 64).
* TEG shop feeds: every TEG shop with the shared marketing feed (WINDOCTOR/shared/marketingfeed; TEG-REPAIRSHOP first) is a data source of its own (key teg_<shop>, the shop's label) with nothing to configure - first sync by itself, nightly sync, "Sync now". The shop's consent comes with its proof: subscribed and unsubscribed are taken as the shop recorded them (never raising an unsubscribed contact), anyone else gets the source's setting under Settings > Audience and sources ("No marketing consent" by default). Paid purchases only, mirrored by (source, ref). A customer saved in the shop is refreshed at once (many at once start one background sync); an address changed in the shop moves the contact. An unsubscribe, spam complaint, privacy erasure or staff suppression here marks the person "no marketing" in every TEG shop on the site (a bounce does not), also when the address was already on the list as a bounce or "Imported" (the entry becomes that opt-out and reaches every shop, one away at the time included, when it is back); an opt-out entry is never changed back. TEG-SALON keeps its own source; a salon feed is not added twice. Source syncs carry the shop's tags (device types, club member).
* Upgrading from 1.0.0: every opt-out already on the suppression list (unsubscribes, spam complaints, privacy erasures and suppressions added by hand) is written back to every TEG shop on the site, in the background, a batch at a time - never bounces, and never rows of a pasted list that gives no reason ("Imported": suppressed in TEG-MARKETER only). Each shop is done only once it has been through the whole list: a shop that is deactivated or still on an older version during the update, or a second shop installed later, gets every older opt-out when it appears (checked hourly and when a plugin is activated); a shop that had been through the list and is then away (deactivated, feed unavailable) gets every opt-out made while it was away when it comes back. Only "no marketing" is ever set; nobody is re-subscribed.
* Suppression list import: a list whose header row names a reason column (header reason, status or why) keeps each row's reason from that column (unsubscribe, complaint, erasure, manual or bounce) for the address in the e-mail column (the row's first address when no column is headed e-mail; any other address in the row is "Imported"), splitting every row with the header line's separator, so unsubscribes, complaints, erasures and manual rows also reach the TEG shops; a list with no such header, and a value in any other column (a "source" column saying Manual), is "Imported", suppressed here and not written back. An address already on the list as a bounce or "Imported" that the list gives an opt-out reason becomes that opt-out. An import that lands while the write-back is running is always gone through.
* TEG shop write-back: each opt-out reaches each shop once. Every delivery, live or by the background pass, is recorded on the suppression entry, so a later import, a pass queued again or a shop coming back never sends it again - a customer who opts back in inside the shop stays opted in - while a shop that was away when the opt-out was made still gets it. Turning a bounce or "Imported" entry into an opt-out is one database write: the address stays suppressed at every moment, also if a write fails or the entry is removed at that very moment (the unsubscribe click then writes it again).
* Activity log: the TEG shop write-back logs a masked address (a***@example.com) or a count per shop, never a full e-mail address.
* Licence: uses the WP-MARKET licence (bit 64). TEG-MARKETER replaces WP-MARKET, so every WP-MARKET licence already sold unlocks it; 1.0.0 named 4194304, which is TEG-MAPIT's (a Windows app) and never unlocks TEG-MARKETER.

= 1.0.0 =
* First release: TEG-WPMARKET's marketing engine as a TEG shop - one contact list with consent, tags and CSV / JSON import; WooCommerce and TEG-SALON as data sources; RFM, lifecycle and engagement segments; campaigns with A/B auto-winner, schedules and drip follow-ups; automations and lifecycle e-mails; click-through revenue; deliverability guardrails and RFC 8058 one-click unsubscribe; GDPR export and erasure; Claude AI copywriting with your own key (Pro).
* TEG Companion: pair a phone under Setup > Phones - contacts, notes, quick add, campaigns with pause / resume, and the stats card.
* WooCommerce is used automatically whenever it is active: customers and paid orders live, the existing history by a first background sync (no "Sync now" needed), click-through revenue, real single-use coupons, recommendations, back-in-stock and abandoned-cart e-mails (on by default; subscribed shoppers only). Without WooCommerce those step aside and the rest works.
* AI copywriting runs only on the customer's own Anthropic API key: none ships, it stays on the server (masked, never in a page, the phone app, an export or a log), "Test the key" answers in plain words, the AI buttons are greyed out with a pointer until a key is in, and Settings and Help explain the cost and how to get a key. A demo site (filter tmr_ai_demo) never stores a key or calls Anthropic.
* The shop chrome of the TEG family: grouped menu, Help with "Set up your shop", What's new, sample business with a one-click loader, 30-day Pro trial and self-hosted updates.
