# How to send through SMTP

`GET /mail/smtp` · Rivier · campaigns

How to send through SMTP: whether the relay is on, the host and ports, and the project's credentials (never their secrets).

- Scope: campaigns:read
- Graphql: Query.campaignsMailSmtpGet
- Sdk: mail.smtp.get
- Cli: mail smtp

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X GET 'https://api.rivier.ai/mail/smtp' \
  -H 'Authorization: Bearer $KEY'
```
