Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Windows Tipps & SecurityDave Plummer Has Made the Task Manager of Your Dreams(21.09.2026 um 21:20 Uhr)
Sichere ProgrammierungSubqueries and CTEs: Asking a Question Inside a Question(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungTVL Trend Analysis & Liquidity Risk Assessment: Lido(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungReact is Officially Dead in 2026 (Thanks to AI)(21.09.2026 um 21:01 Uhr)
Sichere ProgrammierungUsing SHA256 to Build Trustworthy Data Portals in Brazil(21.09.2026 um 21:01 Uhr)
Sichere Programmierung🚀 I reached 1,001 views on DEV!(21.09.2026 um 21:03 Uhr)
Sichere ProgrammierungReact Mental Models 2(21.09.2026 um 21:05 Uhr)
Sichere ProgrammierungAustralian RAM and SSD prices climb as stock tightens(21.09.2026 um 21:09 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I Built My Own Mailchimp Alternative in 200 Lines of Code

Ever looked at your Mailchimp bill and thought "I could build this"? I did. And I was right. The Problem I needed drip emails for my SaaS. Simple 3-step onboarding sequence. Mailchimp wanted $85/month for 5k subscribers.…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Ever looked at your Mailchimp bill and thought "I could build this"?



I did. And I was right.






The Problem



I needed drip emails for my SaaS. Simple 3-step onboarding sequence. Mailchimp wanted $85/month for 5k subscribers. ConvertKit wanted $79/month. ActiveCampaign wanted... let's not talk about it.



For what? Sending time-delayed emails. That's it.






The Solution



Built my own with Codehooks.io (serverless Node.js platform). Total cost: $39/month for infrastructure + email sending. And I own everything.



Here's the entire architecture:




// 1. Config file defines your sequence
{
"workflowSteps": [
{
"step": 1,
"hoursAfterSignup": 24,
"template": {
"subject": "Welcome! 🎉",
"heading": "Hi {{name}}!",
"body": "Thanks for signing up..."
}
},
{ "step": 2, "hoursAfterSignup": 96, ... },
{ "step": 3, "hoursAfterSignup": 264, ... }
]
}

// 2. Cron job finds subscribers ready for next email
app.job('*/15 * * * *', async (req, res) => {
const conn = await Datastore.open();

for (const stepConfig of workflowSteps) {
const cutoffTime = new Date(now - stepConfig.hoursAfterSignup * 60 * 60 * 1000);

// Stream subscribers (constant memory usage)
await conn.getMany('subscribers', {
subscribed: true,
createdAt: { $lte: cutoffTime }
}).forEach(async (subscriber) => {
if (!subscriber.emailsSent?.includes(stepConfig.step)) {
// Atomically mark as sent
const updated = await conn.updateOne(
'subscribers',
{ _id: subscriber._id, emailsSent: { $nin: [stepConfig.step] } },
{ $push: { emailsSent: stepConfig.step } }
);

if (updated) {
await conn.enqueue('send-email', { subscriberId: subscriber._id, step: stepConfig.step });
}
}
});
}
});

// 3. Queue worker sends the email
app.worker('send-email', async (req, res) => {
const { subscriberId, step } = req.body.payload;
const template = await getTemplate(step);
await sendEmail(subscriber.email, template.subject, generateHTML(template));
res.end();
});






That's it. Three pieces:





  1. Config file - Define your steps


  2. Cron job - Find subscribers ready for next email


  3. Queue worker - Send it






Why This Actually Works






Streaming Architecture



Instead of loading all subscribers into memory:




// ❌ Memory issues with 50k+ subscribers
const subscribers = await conn.getMany('subscribers').toArray();

// ✅ Constant memory usage
await conn.getMany('subscribers').forEach(async (sub) => {
await processSubscriber(sub);
});






Scales to 100k+ subscribers without breaking a sweat.






Race Condition Prevention



The atomic update prevents duplicate emails even if cron jobs overlap:




const updated = await conn.updateOne(
'subscribers',
{ _id: subscriber._id, emailsSent: { $nin: [step] } }, // Only if not already sent
{ $push: { emailsSent: step } }
);

// Only queue if we won the race
if (updated) {
await conn.enqueue('send-email', { subscriberId, step });
}









Automatic Retry



If sending fails, worker removes from sent list:




catch (error) {
await conn.updateOne(
'subscribers',
{ _id: subscriberId },
{ $pull: { emailsSent: step } }
);
// Next cron run will retry
}









Deployment



Literally 3 commands:




npm install -g codehooks
coho create my-drip --template drip-email-workflow
coho deploy






Configure your email provider:




coho set-env EMAIL_PROVIDER "sendgrid"
coho set-env SENDGRID_API_KEY "SG.your-key"
coho set-env FROM_EMAIL "[email protected]"






Done. Your drip campaign is running.






The Stack



Codehooks gives you everything in one platform:




  • Serverless functions

  • NoSQL database (MongoDB-compatible)

  • Cron scheduler

  • Queue workers

  • Environment secrets



No AWS Lambda + SQS + CloudWatch + EventBridge nonsense. Just Node.js and deploy.






Cost Breakdown



For 5,000 subscribers:





  • Codehooks Pro: $19/month


  • SendGrid Essentials: $19.95/month


  • Total: $467/year



vs Mailchimp Standard: $1,020/year



For 50,000 subscribers:





  • Codehooks Pro: $19/month


  • SendGrid Pro: $89.95/month


  • Total: $1,307/year



vs Mailchimp: $3,600-4,800/year



The savings scale with your list size.






What You Get



The open source template includes:



✅ Complete working system



✅ REST API for subscriber management



✅ Responsive HTML email templates



✅ Email audit logging with dry-run mode



✅ SendGrid, Mailgun, Postmark integrations



✅ Example configs (onboarding, courses, nurture)






When NOT to Use This



Don't use this if you need:




  • Sub-minute delivery SLAs (use transactional email service)

  • Advanced segmentation UI

  • No-code workflow builder

  • Non-technical team members to manage campaigns



This is for developers who want control and ownership.






Try It






coho create my-campaign --template drip-email-workflow
cd my-campaign
coho deploy






Full code: github.com/codehooks-io/codehooks-io-templates



Docs: codehooks.io/docs






Built this for my own SaaS and figured others might find it useful. No affiliation besides being a happy user.



Questions? Drop them below! 👇






Update Log



2025-01-01: Initial release with streaming architecture and multi-provider support

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I Built My Own Mailchimp Alternative in 200 Lines of Code

Thematisch verwandte Begriffe: Built, Mailchimp, Alternative, Lines · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94494 | jshERP through 3.6 contains a tenant isolation bypass vulnerability that…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick