# cURL ile gönder

> Terminalden doğrudan gönder, kurulumunu test et.

## Önkoşullar

- `SENDTERN_API_KEY` olarak depolanan bir Sendtern [API anahtarı](https://sendtern.com/docs/authentication)
- A terminal with `curl` installed (it ships with macOS, Linux and Windows 10+)

1. **E-posta gönder**: Run this in your terminal.

```
curl -X POST https://sendtern.com/emails \
  -H "Authorization: Bearer $SENDTERN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <hello@mail.example.com>",
    "to": ["you@example.com"],
    "subject": "Hello from the terminal",
    "html": "<p>It works!</p>"
  }'
```

2. **Cevapları kontrol et.**: Başarılı bir talep e-posta kimliğiyle `200 OK`'yi geri verir. Daha sonra e-postayı aramaya kullanın.

```
{
  "id": "47be30ca-24b7-48fb-b35d-ff287b89e66d"
}
```

> **tip:** Örnek göndericiyi [verilen alan adı](https://sendtern.com/docs/domains) adresinizle değiştirin.
