YayMail is a WooCommerce email template customizer plugin that overrides default WooCommerce transactional email templates with drag-and-drop editing while preserving the underlying transactional trigger logic. The unsubscribe mechanism relies on WordPress and WooCommerce hooks: for marketing emails, use the {unsubscribe_url} placeholder tied to a subscriber plugin. Transactional order confirmations bypass unsubscribe consent per e-commerce transactional exemptions. RFC 8058 compliance depends on the underlying WordPress SMTP configuration. This guide covers the placeholder, the WooCommerce hook model, and how to verify the setup end to end.
YayMail (WooCommerce) unsubscribe link
| Tag syntax | {unsubscribe_url} |
| Placement | Manual in template footer for marketing emails |
| Scope | WooCommerce customer-level opt-out via subscriber plugin |
| Config path | WooCommerce > Emails > YayMail template editor |
| RFC 8058 one-click | Depends on WordPress SMTP plugin (WP Mail SMTP, FluentSMTP) configuration |
How to add the unsubscribe tag in YayMail (WooCommerce)
Place the merge tag exactly as shown below in the email template. YayMail (WooCommerce) replaces it at send time with a signed URL scoped to the recipient and campaign.
{unsubscribe_url}For custom HTML templates, wrap the tag in an anchor to render a proper hyperlink in the delivered email:
<a href="{unsubscribe_url}">Unsubscribe from this list</a>Manual in template footer for marketing emails
Depends on WordPress SMTP plugin (WP Mail SMTP, FluentSMTP) configuration The recipient's mailbox provider (Gmail, Yahoo) uses the List-Unsubscribe-Post header to expose the native one-click button on the message. Requires domain authentication with DKIM and DMARC.
YayMail customizes email templates but does not send emails itself: sending goes through the WordPress SMTP configuration (WP Mail SMTP, FluentSMTP, Post SMTP). RFC 8058 headers depend on the SMTP plugin and connected mail service (Amazon SES, Mailgun, SendGrid, SMTPing). Transactional order confirmations bypass marketing unsubscribe requirements per e-commerce exemptions, but marketing emails sent through YayMail-styled templates must include an unsubscribe path.
Testing your YayMail (WooCommerce) unsubscribe link
- Send a test message to a controlled Gmail address you own via the YayMail (WooCommerce) campaign preview action
- Click the footer unsubscribe link and confirm the opt-out on the landing page
- Check the subscriber or contact record: the status should be Unsubscribed within seconds
- Verify the RFC 8058 headers in Gmail: open the message, click three dots, then Show original. Look for
List-UnsubscribeandList-Unsubscribe-Post: List-Unsubscribe=One-Click
Want the full 222-platform reference?
See the pillar guide with the compliance landscape, the RFC 8058 deep dive, and the unsubscribe tag for every ESP: How to add an unsubscribe link: the complete 2026 guide →
How to add the YayMail unsubscribe link (step by step)
YayMail customizes WooCommerce templates but does not send emails itself. For marketing emails, pair YayMail with a subscriber plugin (MailPoet, Groundhogg, FluentCRM) that provides the placeholder.
- Open WooCommerce > Emails > YayMail template editor.
- Add or edit a text block in the marketing email footer where the unsubscribe link should appear.
- Insert the placeholder
{unsubscribe_url}matching your subscriber plugin s convention. - Wrap it in an anchor:
<a href="{unsubscribe_url}">Unsubscribe</a>. - Configure the WordPress SMTP plugin (WP Mail SMTP, FluentSMTP, Post SMTP) to enable List-Unsubscribe headers on marketing sends.
- Send a test to a seed address and verify the rendered link routes to the subscriber plugin s unsubscribe handler.
WooCommerce hook model and template overrides
YayMail overrides default WooCommerce email templates (order confirmation, shipping notification, refund, admin new order) via WordPress theme override hooks. Transactional templates preserve the original trigger logic while receiving new visual design from YayMail. Marketing emails triggered by third-party plugins (MailPoet campaigns, Groundhogg broadcasts, FluentCRM sequences) use their own templates unless YayMail is configured to override them, which is not the default behavior.
RFC 8058 one-click headers via SMTP plugin
YayMail customizes email templates but does not send emails itself: sending goes through the WordPress SMTP configuration (WP Mail SMTP, FluentSMTP, Post SMTP). RFC 8058 headers depend on the SMTP plugin and connected mail service (Amazon SES, Mailgun, SendGrid, SMTPing). Transactional order confirmations bypass marketing unsubscribe requirements per e-commerce exemptions, but marketing emails sent through YayMail-styled templates must include an unsubscribe path with proper List-Unsubscribe headers via the SMTP layer.
Transactional exemption boundaries
WooCommerce order confirmation, shipping notification, and account creation emails qualify for the transactional exemption under CAN-SPAM, CASL, and GDPR reasonable transactional communication rules. These emails do not require an unsubscribe link. Cart abandonment reminders sit in a gray zone: while triggered by a purchase intent event, they are marketing communications and should include unsubscribe under strict GDPR interpretations. Configure YayMail templates to inject the unsubscribe placeholder only in marketing-classified email types.
Frequently Asked Questions
What is the YayMail unsubscribe placeholder?
The placeholder is {unsubscribe_url}, tied to a subscriber plugin (MailPoet, Groundhogg, FluentCRM). YayMail customizes templates but does not provide the unsubscribe handler itself.
Does YayMail send emails or just style them?
YayMail styles templates only. Sending goes through the WordPress SMTP configuration (WP Mail SMTP, FluentSMTP, Post SMTP) and the connected mail service. Deliverability depends on the SMTP layer, not YayMail.
Do WooCommerce order confirmations need unsubscribe?
No. Order confirmation, shipping notification, and account creation qualify for transactional exemption under CAN-SPAM, CASL, and GDPR reasonable transactional communication rules.
How do I add RFC 8058 headers with YayMail?
Configure the WordPress SMTP plugin (WP Mail SMTP, FluentSMTP, Post SMTP) to enable List-Unsubscribe headers on marketing sends. YayMail itself does not inject headers; that layer sits at the SMTP level.
Do cart abandonment emails need unsubscribe?
Under strict GDPR interpretations yes, since they are marketing communications despite being triggered by purchase intent. Configure YayMail templates to inject the unsubscribe placeholder in cart abandonment emails to stay safe across jurisdictions.
About the Author

Alaa · LinkedIn
Email infrastructure specialist with 8+ years of hands-on experience in SMTP, deliverability, and email verification. I’ve configured and troubleshot mail systems across Postfix, Exchange, and cloud relays, managed IP reputation and warmup campaigns, and built verification pipelines processing millions of addresses. My work spans DNS authentication (SPF, DKIM, DMARC, BIMI), bounce handling, blocklist monitoring, and compliance frameworks including CAN-SPAM and GDPR. I write every article on SMTPedia to give email professionals, developers, and marketers the accurate, RFC-grounded reference they need.
About SMTPedia
SMTPedia is an independent email industry reference covering SMTP, IMAP, POP3, email deliverability, marketing platforms, DNS authentication, and email verification. Every article is researched from official provider documentation, IETF RFCs, and industry best practices. Settings and configurations are verified quarterly.
We are cited as a source by ChatGPT, Microsoft Copilot, and thousands of email professionals worldwide. Learn more about our editorial process.

