Email Verification Template

Secure email verification for new user signups. Reduce fake accounts and improve deliverability with confirmed emails.

Email Preview

Subject:Verify your email address

Use with AI Assistants

Copy and paste this prompt into your AI assistant

Claude Code
Claude Code
Cursor
Cursor
Windsurf
Windsurf
Implement an email verification email using the Ark API.

Fetch the template and code examples from: https://arkhq.io/templates/email-verification.md

Replace the template variables with the actual values for:
- {{name}}: The recipient's name
- {{email}}: The recipient's email
- Other variables as documented in the template

Then send via Ark API.

The AI will fetch the template from the URL and use it to send your email through Ark.

Why email verification matters

  • Verified emails have 3x higher engagement rates than unverified
  • Reduces bounce rates and protects your sender reputation
  • Prevents fake account creation and spam signups
  • Required for compliance in many industries (finance, healthcare)

Code Examples

Use the HTML template above with these code examples

import Ark from "@arkhq/sdk";

const ark = new Ark({ apiKey: process.env.ARK_API_KEY });

async function sendVerificationEmail(
  email: string,
  name: string,
  verificationToken: string
) {
  const verificationLink = `https://yourapp.com/verify?token=${verificationToken}`;

  await ark.emails.send({
    from: "[email protected]",
    to: email,
    subject: "Verify your email address",
    html: `<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</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="text-align: center; margin-bottom: 30px;">
    <h1 style="color: #111; font-size: 24px; margin: 0;">Verify Your Email</h1>
  </div>

  <p>Hi ${name},</p>

  <p>Thanks for signing up! Please verify your email address by clicking the button below:</p>

  <div style="text-align: center; margin: 30px 0;">
    <a href="${verificationLink}" style="background-color: #000; color: #fff; padding: 12px 30px; text-decoration: none; border-radius: 6px; font-weight: 500; display: inline-block;">Verify Email</a>
  </div>

  <p style="color: #666; font-size: 14px;">This link will expire in 24 hours. If you didn't create an account, you can safely ignore this email.</p>

  <hr style="border: none; border-top: 1px solid #eee; margin: 30px 0;">

  <p style="color: #999; font-size: 12px;">If the button doesn't work, copy and paste this link:<br>
  <a href="${verificationLink}" style="color: #666;">${verificationLink}</a></p>
</body>
</html>`,
  });
}

Best Practices

  • Send verification emails immediately after signup (within seconds)
  • Use clear, action-oriented subject lines
  • Include a resend option in your app for users who don't receive it
  • Set reasonable expiration (24-72 hours for verification links)
  • Consider offering a numeric code alternative for mobile users
  • Track verification rates to identify deliverability issues

Frequently Asked Questions

How long should verification links be valid?

24-72 hours is standard for email verification. Unlike password resets (which should be shorter for security), verification links can be longer since the risk is lower—the worst case is someone verifying an email they have access to.

Should I allow users to use the app before verifying?

It depends on your use case. Many apps allow limited access before verification to reduce friction. For apps handling sensitive data (finance, healthcare), require verification before any access.

What's a good verification rate benchmark?

A healthy verification rate is 70-85%. If you're below 60%, check your email deliverability, subject line clarity, and whether the verification email is sent immediately after signup.

Should I use a link or a numeric code?

Links work best for desktop users, while 6-digit codes are easier on mobile. Consider offering both, or detecting the user's device and choosing automatically.

Related Templates

Learn More

Ready to send emails?

Get started with Ark in under 2 minutes. $2.50 welcome credit included.