E-Posta
E-posta gönderimi ve şablon yönetimi.
POST
/api/v1/eposta/gonder
E-Posta Gönder
Belirtilen adrese e-posta gönderir. HTML içerik ve ek dosya destekler.
Kimlik doğrulama gerektirir
Parametreler
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
alici |
string | Zorunlu | Alıcı e-posta adresi |
konu |
string | Zorunlu | E-posta konusu |
icerik |
string | Zorunlu | HTML e-posta içeriği |
sablon_id |
integer | Opsiyonel | Şablon ID (opsiyonel) |
Request Body
{
"alici": "customer@company.com",
"konu": "Invoice Notification",
"icerik": "<h1>Your invoice is ready<\/h1><p>Details attached.<\/p>"
}
Response
200
{
"ok": true,
"log_id": 15,
"message": "Email sent."
}
cURL Örneği
POST /api/v1/eposta/gonder
curl -X POST https://api.pratikesnaf.com/api/v1/eposta/gonder \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"alici": "customer@company.com", "konu": "Invoice Notification", "icerik": "<h1>Your invoice is ready</h1><p>Details attached.</p>"}'