https://github.com/yandex-cloud-examples/yc-postbox-bulkemails
Отправка почтовой рассылки через API Postbox и функция отписки.
https://github.com/yandex-cloud-examples/yc-postbox-bulkemails
object-storage postbox s3 serverless yandex-cloud yandexcloud
Last synced: 3 months ago
JSON representation
Отправка почтовой рассылки через API Postbox и функция отписки.
- Host: GitHub
- URL: https://github.com/yandex-cloud-examples/yc-postbox-bulkemails
- Owner: yandex-cloud-examples
- License: apache-2.0
- Created: 2024-05-24T12:36:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-11T11:11:45.000Z (10 months ago)
- Last Synced: 2025-06-11T12:25:57.980Z (10 months ago)
- Topics: object-storage, postbox, s3, serverless, yandex-cloud, yandexcloud
- Language: Python
- Homepage: https://yandex.cloud/ru/events/878
- Size: 32.2 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Send emails from Yandex Cloud Postbox (postbox-sender.py).
1. Use Yandex Cloud enviroment variables:
- **AWS_ACCESS_KEY_ID** - Yandex Cloud Service Account (SA) static access key
- **AWS_SECRET_ACCESS_KEY** - Yandex Cloud Service Account (SA) static access key secret
- **FROM** - your email address from Yandex Postbox verified domain
- **LIST_ID** - [RFC2919](https://datatracker.ietf.org/doc/html/rfc2919) comliant list id
- **UNSUBSCRIBE_LINK** - Yandex Cloud Function link to unsubscribe
- **UNSUBSCRIBE_MAIL** - Yandex Cloud Email Trigger to unsubscribe
2. Attach Object Storage to Cloud Function with **bucket** mount point (or change file paths/names inside this code)
3. Use **bulkemail.xlsx** excel examble and **blacklist.xlsx** for restricted emails
# Unsubcribe Cloud Function (postbox-unsubscribe.py).
Append usubcribed emails to **blacklist.xlsx**.
1. Attach Object Storage to Cloud Function with **bucket** mount point (or change file paths/names inside this code) and **disable read-only mode**.
2. Execute with URL params: _email_ (appended email) and _l_ (email list). I.e. https://functions.yandexcloud.net/d4sdxfer4243sdxfcvfr?email=a@example.com&l=demolist.example.com
[How to use video](https://yandex.cloud/ru/events/878)