Skip to content

Spintax Email Content Variation Syntax Usage Guide ​

What is Spintax? ​

Spintax (Spinning Syntax) is an intelligent syntax that allows your email content to automatically generate multiple variations. By using Spintax, you can:

  • 🎯 Avoid repetitive email content - Each email has different expressions

  • 📈 Improve email deliverability - Reduce the risk of being identified by spam filters

  • ✨ Increase content richness - Make email content more natural and diverse

  • 🚀 Save creation time - Write once, automatically generate multiple versions

Basic Syntax ​

Simple Format ​

{option1|option2|option3}

Usage Rules ​

  1. Enclose all options with {}

  2. Separate different options with |

  3. The system will randomly select one option

  4. You can add any number of options

Practical Application Cases ​

🎯 Case 1: Marketing Email Opening ​

Original writing:

Dear customer, thank you for choosing our product!

Spintax writing:

{Dear|Respected|Hello} {customer|friend|user}, {thank you|thanks} for {choosing|purchasing|trusting} our {product|service|solution}!

Possible generated variations:

  • Dear customer, thank you for choosing our product!

  • Respected friend, thanks for purchasing our service!

  • Hello user, thank you for trusting our solution!

📧 Case 2: Promotional Email Content ​

Original writing:

Limited time offer! Purchase now and enjoy 20% off!

Spintax writing:

{Limited time|Special|Exclusive} {offer|discount|promotion}! {Purchase|Order|Buy} {now|immediately|today} and {enjoy|get|receive} {20% off|discount|special price}!

Possible generated variations:

  • Special discount! Order immediately and get discount!
  • Exclusive promotion! Buy today and receive special price!
  • Limited time offer! Purchase now and enjoy 20% off!

🎉 Case 3: Holiday Greeting Email ​

Spintax writing:

{Wishing you|Hope you have} a {Happy New Year|wonderful holiday|joyful celebration}!

{On this special day|As the new year approaches|During this festive season}, we have {prepared for you|specially launched|carefully designed} {beautiful gifts|special activities|exclusive offers}.

{Act quickly|Don't miss out|Join now}, {limited quantity|limited time|rare opportunity}!

📱 Case 4: Product Recommendation Email ​

Spintax writing:

Hi {{.CustomerName}},

We {noticed|discovered|learned} that you are {very interested in|have a need for|quite focused on} {our products|{{.ProductCategory}}|related services}.

{Today|Now|Here} I would like to {recommend to you|introduce to you|share with you} an {excellent|outstanding|perfect} {solution|product|service}: {{.ProductName}}

This product {has|provides|offers} the following {advantages|features|benefits}:
• {Efficient|Fast|Convenient} user experience
• {Professional|High-quality|Attentive} customer service
• {Reasonable|Affordable|Cost-effective} pricing plans

{If you're interested|To learn more|For detailed information}, {please contact us anytime|feel free to reply|click the link below}.

{Best regards|Sincerely|Looking forward to your reply},
{{.SenderName}}

⚠️ Important: These Places Won't Work! ​

Important Reminder: Using Spintax syntax in the following locations is ineffective, the system will automatically ignore it, please don't waste time in these places!

❌ Invalid in CSS Style Code ​

html
<style>
  .button { 
    background: {#ff0000|#00ff00|#0000ff}; /* ❌ This won't work! */
    border-radius: {5px|10px|15px}; /* ❌ Won't take effect! */
  }
</style>
<p>Click {here|this link|the button below} to learn more!</p> <!-- ✅ This works -->

Explanation: Braces in CSS code are CSS syntax, not Spintax, the system won't process them

❌ Invalid in HTML Tag Attributes ​

html
<!-- ❌ The following Spintax in attributes are all invalid: -->
<div style="color: {red|blue|green}; padding: {10px|20px};">
<img src="image_{1|2|3}.jpg" alt="{image|photo}">
<a href="page_{home|about}.html" title="{home|about}">

<!-- ✅ Only tag content is valid: -->
  Welcome to our {product|service}!
</a>

Explanation: HTML attribute values are treated as code by the system, Spintax processing won't occur

✅ Correct Usage Locations ​

Only Spintax in these places will take effect:

📝 Email Body Text ​

{Welcome|Hello|Thank you} for using our service!  <!-- ✅ Valid -->

📧 Email Subject Line ​

Subject: {Limited Offer|Special Promotion|Exclusive Discount}  <!-- ✅ Valid -->

🏷️ Text Inside HTML Tags ​

html
<p>{Thank you|Thanks} for your {support|trust}!</p>  <!-- ✅ Valid -->
<h1>Welcome {new users|friends}!</h1>  <!-- ✅ Valid -->

💡 Avoid Common Mistakes ​

Mistake Example 1: Using in Styles ​

html
❌ Wrong way:
<style>
  .header { background: {red|blue}; }  <!-- Won't change -->
</style>

✅ Correct way:
<style>
  .header { background: #007cff; }  <!-- Fixed style -->
</style>
<div class="header">
  {Welcome|Hello} visitor!  <!-- Text content can vary -->
</div>
html
❌ Wrong way:
<a href="https://{www|shop}.example.com">  <!-- Link won't change -->

✅ Correct way:
<a href="https://www.example.com">
  {Visit|View|Click} our website  <!-- Link text can vary -->
</a>

Mistake Example 3: Using in Image Paths ​

html
❌ Wrong way:
<img src="images/{banner1|banner2}.jpg">  <!-- Image path won't change -->

✅ Correct way:
<img src="images/banner.jpg" alt="{Beautiful|High-quality} banner image">  <!-- Description text can vary -->

🔧 Debugging Tips ​

If your Spintax isn't working, please check:

  1. Confirm correct location - Is it in a valid text area?

  2. Check syntax - Does it contain | separators?

  3. Verify nesting - Is it inside CSS/JS/HTML attributes?

  4. Test preview - Refresh multiple times to see if there are changes

Remember: Only email text content supports Spintax, code sections don't!

📝 Practical Writing Tips ​

1. Maintain Semantic Consistency ​

✅ Recommended:

We {provide|offer|deliver} {high-quality|professional|excellent} service

❌ Avoid:

We {provide|red|happy} service  // Inconsistent semantics

2. Use Variations Moderately ​

✅ Recommended:

{Thank you|Thanks} for your {support|trust}!

❌ Avoid:

{Thank you|Thanks|Many thanks|Grateful|Appreciate|Much obliged} for your {support|trust|confidence|backing|help|assistance}!  // Overly complex

3. Ensure All Variations Make Sense ​

Testing method: Mentally read through each possible combination to ensure they all flow naturally.

4. Combine with Personalization Variables ​

{Dear|Respected} {{.CustomerName}},

{Based on|According to} your {purchase history|browsing records}, we {recommend|specially recommend} {{.RecommendedProduct}}.

{Looking forward to|Hope to} {hearing|receiving} your {feedback|reply}!

🎨 Email Template Examples ​

Welcome Email Template ​

html
<!DOCTYPE html>
<html>
<head>
    <style>
        .container { max-width: 600px; margin: 0 auto; }
        .header { background: #f8f9fa; padding: 20px; }
        .content { padding: 30px 20px; }
        .button { 
            background: #007cff; 
            color: white; 
            padding: 12px 24px; 
            text-decoration: none; 
            border-radius: 5px; 
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>{Welcome|Hello|Greetings} {{.CustomerName}}!</h1>
        </div>
        
        <div class="content">
            <p>{Thank you|Thanks} for {joining|registering|becoming part of} our {platform|community|family}!</p>
            
            <p>We have {prepared for you|specially designed|created} {rich|exciting|useful} {features|services|content}:</p>
            
            <ul>
                <li>{Professional|High-quality|Dedicated} customer service</li>
                <li>{Regular|Timely|Latest} product updates</li>
                <li>{Exclusive|Special|Member-only} offers</li>
            </ul>
            
            <p style="text-align: center; margin: 30px 0;">
                <a href="{{.StartUrl}}" class="button">
                    {Get Started|Start Now|Begin Today}
                </a>
            </p>
            
            <p>{If you have questions|Need help|Encounter issues}, {please contact us anytime|feel free to reply|reach out to support}.</p>
            
            <p>{Enjoy using our service|Looking forward to serving you|Best wishes}!</p>
        </div>
    </div>
</body>
</html>

Order Confirmation Email ​

{Dear|Respected} {{.CustomerName}},

{Thank you|Thanks} for your {order|purchase}! We have {received|confirmed} your order {{.OrderNumber}}.

{Order details|Purchase information}:
- {Product|Item}: {{.ProductName}}  
- {Quantity|Amount}: {{.Quantity}}
- {Total|Price}: {{.TotalAmount}}
- {Order time|Purchase date}: {{.OrderDate}}

We will {arrange shipping|process your order|prepare your items} within {1-2 business days|24-48 hours|the shortest time possible}.

{Order status|Shipping information} can be tracked via: {{.TrackingUrl}}

{If you have any questions|For any inquiries|Should you need assistance}, please {contact us|reply to this email|reach out}.

{Best regards|Thank you again|Sincerely},
{{.CompanyName}} Team

Product Update Notification ​

Hi {{.CustomerName}},

{Great news|Exciting update|Important announcement}! We've just {released|launched|introduced} {new features|improvements|enhancements} to {{.ProductName}}.

{What's new|Latest updates|New features}:
• {Enhanced|Improved|Better} {performance|speed|efficiency}
• {New|Additional|More} {tools|features|capabilities}
• {Updated|Refreshed|Modern} user interface
• {Better|Enhanced|Improved} security measures

{To access|To use|To try} these {new features|updates|improvements}, simply {log in|visit|go to} your account at {{.LoginUrl}}.

{We believe|We're confident|We think} you'll {love|enjoy|appreciate} these {changes|updates|improvements}!

{Questions|Need help|Feedback}? {Contact us|Reply here|Get in touch}: {{.SupportEmail}}

{Happy using|Best regards|Enjoy},
The {{.CompanyName}} Team

🚀 Advanced Tips ​

Nested Spintax (Use Carefully) ​

{Good {morning|afternoon}|Hello|Hi} {{.CustomerName}}!

Combining with Conditionals ​

{Dear|Hello} {{.CustomerName}},

{{if .IsPremiumUser}}
As a {premium|valued|VIP} member, you {get|receive|have access to} {exclusive|special|priority} {benefits|features|support}.
{{else}}
{Consider|Think about|Why not} {upgrading|joining|becoming} our premium {membership|plan|service}?
{{end}}

Best Practices Summary ​

  1. Keep it natural - All variations should sound human

  2. Test thoroughly - Preview multiple times to ensure quality

  3. Don't overdo it - 2-4 options per variation is usually enough

  4. Maintain consistency - Ensure tone matches throughout

  5. Consider context - Formal vs casual language as appropriate

Remember: Spintax is a powerful tool for email personalization, but use it wisely to maintain quality and readability!

Released under the AGPLv3 License