Skip to main content

Email Services

Send transactional emails securely with domain verification, SPF/DKIM records, and reliable delivery to your users.

What are Email Services?

Antryk Email Services provides a managed email infrastructure for sending transactional emails (verification codes, password resets, receipts, notifications) with high deliverability and no infrastructure management.

Key Features

  • Domain Verification: Verify your domain with DNS records
  • SPF/DKIM Setup: Automatic configuration for email authentication
  • High Deliverability: Optimized delivery rates
  • Email Tracking: Track opens, clicks, and bounces
  • Templates: Pre-built email templates
  • Webhooks: Real-time delivery notifications
  • Analytics: Delivery and engagement metrics

Use Cases

  • Account Verification: Send verification codes
  • Password Resets: Secure password reset emails
  • Notifications: Order confirmations, receipts
  • Marketing: Newsletters and promotional emails
  • Alerts: System alerts and notifications
  • Invitations: User invitations and welcome emails

Getting Started

  1. Create Email Service from your dashboard
  2. Verify Domain by adding DNS records
  3. Set up SPF/DKIM records (automatic setup)
  4. Send test email to verify setup
  5. Start sending emails from your application

Domain Verification

Verify your domain by adding DNS records:
Type: TXT
Name: @
Value: v=spf1 include:antryk.com ~all

SPF Record

Type: TXT
Name: @
Value: v=spf1 include:antryk.com ~all

DKIM Record

Type: TXT
Name: antryk._domainkey
Value: [Your DKIM public key]

Sending Emails

API

const response = await fetch('https://api.antryk.com/v1/email/send', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${API_KEY}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    to: 'user@example.com',
    from: 'noreply@yourdomain.com',
    subject: 'Welcome to our service',
    html: '<h1>Welcome!</h1>',
    text: 'Welcome to our service'
  })
});

Node.js SDK

const antryk = require('@antryk/email');

await antryk.emails.send({
  to: 'user@example.com',
  from: 'noreply@yourdomain.com',
  subject: 'Welcome',
  html: '<h1>Welcome!</h1>'
});

Python SDK

import antryk

antryk.email.send(
    to='user@example.com',
    from_email='noreply@yourdomain.com',
    subject='Welcome',
    html='<h1>Welcome!</h1>'
)

Email Templates

Create reusable email templates:
{
  "id": "welcome-email",
  "name": "Welcome Email",
  "subject": "Welcome to {{company}}",
  "html": "<h1>Welcome {{name}}!</h1>",
  "variables": ["name", "company"]
}

Webhooks

Receive real-time notifications:
app.post('/webhook/email', (req, res) => {
  const { event, email_id, status } = req.body;
  
  if (event === 'delivered') {
    console.log(`Email ${email_id} delivered`);
  } else if (event === 'bounced') {
    console.log(`Email ${email_id} bounced`);
  }
  
  res.status(200).send('OK');
});

Analytics

Track email performance:
  • Delivery Rate: Percentage of emails delivered
  • Open Rate: Percentage of emails opened
  • Click Rate: Percentage of emails with clicks
  • Bounce Rate: Emails that bounced
  • Unsubscribe Rate: Unsubscribes

Pricing

Email Services are billed by:
  • Emails Sent: Number of emails delivered
  • Volume Discounts: Reduced rates for high volume
  • No Setup Fees: Free domain verification

Best Practices

  • Verify Domain: Set up SPF/DKIM for better deliverability
  • Double Opt-in: Confirm user subscriptions
  • Unsubscribe Links: Include unsubscribe links
  • Monitoring: Track bounce rates and engagement
  • Warm-up: Gradually increase sending volume

Get Started

Start sending emails