
Özet
Sonunda tek bir bağlantı bulunan, üç öğelik dönemsel bir özet.
En sade olanı: bir başlık, bir satır ayrıntı, isteğe bağlı bir alıntı ve bir bağlantı.

{{headline}}
{{headline}}
{{body}}
{{quoteAuthor}}
{{quoteBody}}
{{actionLabel}} [{{actionUrl}}]
{{footerNote}}Örnek değerlerle gösteriliyor. HTML ve Düz metin sekmeleri yer tutucuları korur.
Hakkında
Yorumlar, bahsetmeler, durum değişiklikleri ve bir başlıkla tek bir eylem gerektiren her şey için genel bir bildirim. Alıntı bloğu isteğe bağlıdır, düğme metnini de siz belirlersiniz.
Değerler
Zorunlu değerler her gönderimle birlikte gelmelidir. Diğerleri için burada gösterilen varsayılan kullanılır.
| Yer tutucu | Tür | Zorunlu | Varsayılan |
|---|---|---|---|
{{headline}} | Metin | Zorunlu | Yok |
{{body}} | Metin | Zorunlu | Yok |
{{quoteAuthor}} | Metin | İsteğe bağlı | Yok |
{{quoteBody}} | Metin | İsteğe bağlı | Yok |
{{actionLabel}} | Metin | İsteğe bağlı | Open |
{{actionUrl}} | Bağlantı | Zorunlu | Yok |
{{footerNote}} | Metin | İsteğe bağlı | You are receiving this because of your notification settings. |
API
Bu tasarımdan bir kez şablon oluşturun, sonra her mesaj için değerlerle birlikte gönderin.
import { init, openemail } from '@openemail/sdk' init({ apiKey: process.env.OPENEMAIL_API_KEY }) const template = await openemail.templates.create({ name: 'Notification', starter: 'notification', publish: true,}) const sent = await openemail.templates.send(template.slug, { from: 'Northwind <[email protected]>', to: '[email protected]', props: { headline: 'Jonas commented on the launch plan', body: 'He left a note on the pricing section and asked for a second pair of eyes before Friday.', quoteAuthor: 'Jonas Weber', quoteBody: 'Can we test the annual price before we commit to it?', actionUrl: 'https://example.com/docs/launch-plan', },}) console.log(sent.id, sent.status)Bildirimler
Bir şablonla başlayın
Her şablon düzenleyicide taşıyabileceğiniz, yeniden biçimlendirebileceğiniz ya da silebileceğiniz bloklar olarak açılır ve API üzerinden değerleri doldurulmuş hâlde gönderilir.
İşletmeler, yapay zekâ, ajanlar ve kişisel e-posta için e-posta altyapısı. Ölçek, gizlilik ve denetim için kuruldu. E-postanın ilk günden sahip olması gereken her şey.