Skip to content

Отправка почтовой рассылки через API Postbox и функция отписки.

License

Notifications You must be signed in to change notification settings

yandex-cloud-examples/yc-postbox-bulkemails

Repository files navigation

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 comliant list id
  • UNSUBSCRIBE_LINK - Yandex Cloud Function link to unsubscribe
  • UNSUBSCRIBE_MAIL - Yandex Cloud Email Trigger to unsubscribe
  1. Attach Object Storage to Cloud Function with bucket mount point (or change file paths/names inside this code)
  2. 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

About

Отправка почтовой рассылки через API Postbox и функция отписки.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages