All templates
notification
Weekly Digest Template
Send weekly activity summaries to users
Preview
HTML Code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weekly Digest</title>
</head>
<body style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
<div style="background: #ffffff; padding: 40px 30px; border: 1px solid #e5e7eb; border-radius: 12px;">
<h1 style="color: #1f2937; font-size: 24px; margin-top: 0;">Your weekly digest</h1>
<p>Hi {{name}},</p>
<p>Here's a summary of your activity this week:</p>
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0;">
<div style="background: #f9fafb; padding: 20px; border-radius: 8px; text-align: center;">
<div style="font-size: 32px; font-weight: 700; color: #2563eb;">{{stat_1}}</div>
<div style="color: #6b7280; font-size: 14px;">Emails sent</div>
</div>
<div style="background: #f9fafb; padding: 20px; border-radius: 8px; text-align: center;">
<div style="font-size: 32px; font-weight: 700; color: #059669;">{{stat_2}}</div>
<div style="color: #6b7280; font-size: 14px;">Open rate</div>
</div>
<div style="background: #f9fafb; padding: 20px; border-radius: 8px; text-align: center;">
<div style="font-size: 32px; font-weight: 700; color: #8b5cf6;">{{stat_3}}</div>
<div style="color: #6b7280; font-size: 14px;">Click rate</div>
</div>
</div>
<div style="text-align: center; margin: 30px 0;">
<a href="{{dashboard_url}}" style="display: inline-block; background: #2563eb; color: white; padding: 14px 32px; text-decoration: none; border-radius: 8px; font-weight: 600;">View Dashboard</a>
</div>
</div>
</body>
</html>Template Variables
Replace these placeholders with your actual data:
{{name}}{{stat_1}}{{stat_2}}{{stat_3}}{{dashboard_url}}Send with SendPigeon
import { SendPigeon } from "sendpigeon";
const client = new SendPigeon(process.env.SENDPIGEON_API_KEY);
await client.emails.send({
from: "hello@yourdomain.com",
to: "user@example.com",
subject: "Your weekly digest",
html: `<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device...`,
});Ready to send emails?
Get started with 1,000 free emails per month.
Start for free