FREE · NO ACCOUNT NEEDED

MailFlow AI

Generate professional email campaigns in seconds — copy the HTML and send

✉️ Campaign Settings

👋Welcome
🎉Promotional
📰Newsletter
🔄Follow-up
💡Re-engagement
📣Announcement
✉️

Fill in your settings
and click Generate Email

${brand}

${headline}

${body}
${cta}

You received this because you signed up at ${brand}.
Unsubscribe · Privacy Policy

`; currentPlain=`Subject: ${subject}\n\n${headline.toUpperCase()}\n${'─'.repeat(40)}\n\n${body.replace(/<[^>]+>/g,'').replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').trim()}\n\n→ ${cta}: ${ctaUrl}\n\n${'─'.repeat(40)}\nSent by ${brand} · Unsubscribe: [link]`; document.getElementById('emptyState').style.display='none'; const frame=document.getElementById('previewFrame'); frame.style.display='block'; frame.srcdoc=currentHtml; document.getElementById('htmlCode').value=currentHtml; document.getElementById('plainText').value=currentPlain; btn.disabled=false;btn.textContent='Regenerate'; switchTab('preview',document.querySelector('.tab')); },700); } function switchTab(name,el){ activeTab=name; document.querySelectorAll('.tab').forEach(t=>t.classList.remove('active')); if(el)el.classList.add('active'); document.getElementById('previewTab').style.display=name==='preview'?'block':'none'; document.getElementById('htmlCode').style.display=name==='html'?'block':'none'; document.getElementById('plainText').style.display=name==='plain'?'block':'none'; } function copyHtml(){ if(!currentHtml)return; navigator.clipboard.writeText(currentHtml).then(()=>{ const b=document.getElementById('copyHtmlBtn');b.textContent='Copied!';b.classList.add('copied'); setTimeout(()=>{b.textContent='Copy HTML';b.classList.remove('copied')},2000); }); } function copyPlain(){ if(!currentPlain)return; navigator.clipboard.writeText(currentPlain).then(()=>{ const b=document.getElementById('copyPlainBtn');b.textContent='Copied!';b.classList.add('copied'); setTimeout(()=>{b.textContent='Copy Plain Text';b.classList.remove('copied')},2000); }); } function downloadHtml(){ if(!currentHtml)return; const a=document.createElement('a'); a.href='data:text/html;charset=utf-8,'+encodeURIComponent(currentHtml); a.download='email-campaign.html';a.click(); } // Trial gate const _origGenerate = generate; generate = function() { if (!nxCheckTrial()) return; _origGenerate(); nxShowBanner(); };