Pengiriman Email

Jangkau pemain Anda di luar game dengan email transaksional

Mulai Gratis

SMTP Anda, Merek Anda

Email berasal dari domain Anda. horizOn tidak pernah mengirim atas nama Anda -- Anda mempertahankan kendali penuh atas pengiriman dan branding.

Template Engine dengan Variabel

Buat template HTML yang dapat digunakan kembali dengan placeholder seperti {{username}} atau {{eventTime}}. Mendukung hingga 15 bahasa.

Pengiriman Segera atau Terjadwal

Kirim email segera atau jadwalkan untuk nanti. Batalkan email terjadwal kapan saja melalui API.

Dibangun untuk Acara Game

Peringatan turnamen, konfirmasi pembelian, nudge inaktivitas, email sambutan. Satu panggilan API memicu seluruh alur.

Integrasi Cepat

Integrasi Cepat

C#
// Unity C# - Email Sending
using HorizOn;

var horizon = new HorizonClient("YOUR_API_KEY");

// Send an immediate email to a registered player
await horizon.Email.Send(new SendEmailRequest {
    UserId = userId,
    TemplateSlug = "welcome",
    Language = "en",
    Variables = new Dictionary<string, string> {
        { "username", "PlayerOne" }
    }
});

// Schedule an email for later delivery
await horizon.Email.Send(new SendEmailRequest {
    UserId = userId,
    TemplateSlug = "appointment_reminder",
    Language = "en",
    Variables = new Dictionary<string, string> {
        { "appointmentName", "Dentist" },
        { "appointmentTime", "14:00" }
    },
    ScheduledAt = DateTime.UtcNow.AddDays(1)
});

// Cancel a scheduled email
await horizon.Email.Cancel(emailId);
REST
# REST API - Email Sending

# Send an immediate email
curl -X POST https://eu.horizon.pm/api/v1/app/email-sending/send \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "USER_ID",
    "templateSlug": "welcome",
    "language": "en",
    "variables": { "username": "PlayerOne" }
  }'

# Schedule an email for tomorrow
curl -X POST https://eu.horizon.pm/api/v1/app/email-sending/send \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "USER_ID",
    "templateSlug": "appointment_reminder",
    "language": "en",
    "variables": { "appointmentName": "Dentist", "appointmentTime": "14:00" },
    "scheduledAt": "2026-04-12T14:00:00Z"
  }'

# Cancel a scheduled email
curl -X DELETE https://eu.horizon.pm/api/v1/app/email-sending/EMAIL_ID \
  -H "X-API-Key: YOUR_API_KEY"
Pertanyaan yang Sering Diajukan

Pertanyaan yang Sering Diajukan

Siap untuk Integrasi?

Mulai membangun dengan horizOn hari ini. Paket gratis tersedia.