Make a great first impression with welcome emails that engage new users. Guide them through onboarding and drive activation with clear next steps.
Send welcome emails with the TigerMail API.
async function sendWelcomeEmail(
userEmail: string,
userName: string,
activationUrl?: string
) {
const response = await fetch("https://tigermail.io/api/v1/send", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.TIGERMAIL_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
to: [userEmail],
from: "welcome@yourapp.com",
subject: `Welcome to YourApp, ${userName}!`,
html: `
<h1>Welcome aboard, ${userName}!</h1>
<p>We're thrilled to have you join us.</p>
<h2>Get Started in 3 Steps:</h2>
<ol>
<li>Complete your profile</li>
<li>Connect your first integration</li>
<li>Send your first email</li>
</ol>
<p>
<a href="${activationUrl || 'https://yourapp.com/dashboard'}" style="
background: #f97316;
color: white;
padding: 12px 24px;
text-decoration: none;
border-radius: 6px;
">
Go to Dashboard
</a>
</p>
<p>Questions? Reply to this email or visit our <a href="https://yourapp.com/docs">docs</a>.</p>
`,
}),
});
return response.json();
}Follow these guidelines for effective welcome emails.
Send secure, reliable password reset emails that reach your users' inboxes instantly. Build trust with fast delivery and professional formatting.
Keep users informed with instant notification emails. Activity alerts, status updates, and important announcements delivered reliably.
Send professional order confirmations instantly after purchase. Keep customers informed with tracking details, order summaries, and next steps.