# Email

If your app needs to send transactional emails, there is a right way to do so via our Yandex Cloud Postbox account. It supports both AWS SES and SMTP APIs. 


:::tip
If you're unsure about any step, remember that you can always ask a [RØ](/doc/ro-sfA6hNn1MF) member for help.

:::

## Acquire access to Yandex Cloud 

Ask RØ to provide you with access to the Yandex Cloud Console. 

## Create a Service Account (SA) 


1. Open the “Service Accounts” tab for the “production” folder in IAM. 
2. Click on the “Create service account” button near the top-right corner. 
3. Provide a meaningful name and description for your SA. 
4. Assign a `postbox.sender` role. 
5. Click on “Create”. 

## Issue an API Key 


1. Select your shiny new SA. 
2. Click on “Create new key” near the top-right corner. 
3. Select “Create API key”. 
4. Provide a description, then click “Create”. 
5. Copy Secret Key. 

## Sending emails 

From this point, you may follow the [official Postbox documentation](https://yandex.cloud/en/docs/postbox/quickstart#send-test-letter).

### SMTP

```bash
Host: postbox.cloud.yandex.net
Port: 587
Use TLS: Yes
User: API_KEY
Password: secret-key-you-generated-before
```

## Sender details

For the sake of convenience, we strongly advise you to follow this convention: 

* From: `BKSP {Your service name} <no-reply@bksp.in>` 
* Reply-to: `B4CKSP4CE Team <info@bksp.in>` 

If you’d like to use a From address other than `no-reply@bksp.in` it's important to consult with the Infrastructure or [RØ](/doc/ro-sfA6hNn1MF) team first to avoid possible collisions.

---

**Documents**

- [BKSP 101](https://wiki.bksp.in/s/public/doc/bksp-101-HvrtlzB32F)
- [Проекты](https://wiki.bksp.in/s/public/doc/proekty-yjWZscgTvo)
- [Infrastructure](https://wiki.bksp.in/s/public/doc/infrastructure-VPKsJwVSVh)
- [Пространство](https://wiki.bksp.in/s/public/doc/prostranstvo-UF1eSbQDi5)
- [Equipment](https://wiki.bksp.in/s/public/doc/equipment-t5MYAVJ8l0)
- [Other](https://wiki.bksp.in/s/public/doc/other-uPW1YJQaRt)