Send secure, reliable password reset emails that reach your users' inboxes instantly. Build trust with fast delivery and professional formatting.
Send password reset emails with the TigerMail API.
async function sendPasswordResetEmail(
userEmail: string,
resetToken: string,
userName: string
) {
const resetUrl = `https://yourapp.com/reset?token=${resetToken}`;
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: "security@yourapp.com",
subject: "Reset your password",
html: `
<h1>Password Reset Request</h1>
<p>Hi ${userName},</p>
<p>We received a request to reset your password.</p>
<p>
<a href="${resetUrl}" style="
background: #f97316;
color: white;
padding: 12px 24px;
text-decoration: none;
border-radius: 6px;
">
Reset Password
</a>
</p>
<p>This link expires in 1 hour.</p>
<p>If you didn't request this, please ignore this email.</p>
`,
}),
});
return response.json();
}Follow these guidelines for effective password reset emails.
Make a great first impression with welcome emails that engage new users. Guide them through onboarding and drive activation with clear next steps.
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.