
Ürün duyurusu
Kapak görseli, giriş paragrafı ve numaralı üç değişiklik içeren sürüm notları.
Logo, selamlama, tek bir mesaj ve tek bir eylem çağrısıyla bir kurucudan kişisel bir not.

{{headline}}
Hello, I'm {{senderName}} 👋
{{senderRole}}
Hi {{name}},
{{message}}
{{actionLabel}} [{{actionUrl}}]
Thanks for reading,
{{senderName}}
{{senderAddress}}
Unsubscribe [{{unsubscribeUrl}}]Örnek değerlerle gösteriliyor. HTML ve Düz metin sekmeleri yer tutucuları korur.
Hakkında
Bir ekipten değil, bir insandan gelmesi gereken haberler için gönderin. Gönderenin adı ve unvanıyla açılır, okuru adıyla selamlar, tek bir mesaj ve tek bir düğme taşır ve bir posta adresi ile abonelikten çıkma bağlantısıyla biter.
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 |
{{logo}} | Görsel | İsteğe bağlı | https://placehold.co/160x160/09090B/FAFAFA/png?text=Logo |
{{senderName}} | Metin | Zorunlu | Yok |
{{senderRole}} | Metin | İsteğe bağlı | Yok |
{{name}} | Metin | İsteğe bağlı | there |
{{message}} | Metin | Zorunlu | Yok |
{{actionLabel}} | Metin | İsteğe bağlı | Take a look |
{{actionUrl}} | Bağlantı | Zorunlu | Yok |
{{senderAddress}} | Metin | Zorunlu | Yok |
{{unsubscribeUrl}} | Bağlantı | Zorunlu | Yok |
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: 'Announcement', starter: 'announcement', publish: true,}) const sent = await openemail.templates.send(template.slug, { from: 'Northwind <[email protected]>', to: '[email protected]', props: { headline: 'Northwind is now open to every team', logo: 'https://openemail.uk/email-templates/samples/logo.svg', senderName: 'Priya Nair', senderRole: 'Founder, Northwind', name: 'Maya', message: 'For the past year Northwind has been invite only while we got the basics right. From today anyone can create a workspace, and everything you set up during the beta carries over as it is.', actionUrl: 'https://example.com/whats-new', senderAddress: 'Northwind Ltd, 42 Harbour Lane, Bristol BS1 4XE', unsubscribeUrl: 'https://example.com/unsubscribe', },}) console.log(sent.id, sent.status)Duyurular
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.