{"id":15008819,"url":"https://github.com/ilyashirko/mailganer","last_synced_at":"2026-04-02T01:59:04.616Z","repository":{"id":128452383,"uuid":"570241233","full_name":"ilyashirko/mailganer","owner":"ilyashirko","description":"Service for mass mail distribution using gmail","archived":false,"fork":false,"pushed_at":"2022-11-25T18:46:42.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T18:10:16.933Z","etag":null,"topics":["celery","django","gmail","python2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilyashirko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-24T17:08:07.000Z","updated_at":"2022-11-26T07:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"d085ea56-56b9-42dc-bcfc-5b1bb19bbcd3","html_url":"https://github.com/ilyashirko/mailganer","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"7ed9a05874e07e08776c003f30adbfb0c16fdd8c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyashirko%2Fmailganer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyashirko%2Fmailganer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyashirko%2Fmailganer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilyashirko%2Fmailganer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilyashirko","download_url":"https://codeload.github.com/ilyashirko/mailganer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243204624,"owners_count":20253415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","django","gmail","python2"],"created_at":"2024-09-24T19:20:43.382Z","updated_at":"2025-12-26T05:40:08.224Z","avatar_url":"https://github.com/ilyashirko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-mail service\nE-mail service for mass sending emails using `gmail` host.  \nYou need `python 2.7`, `poetry 1.1.15` and `virtualenv 20.15.1` to work with service.\n## Installation\nclone repo, enter root dir:\n```sh\ngit clone https://github.com/ilyashirko/mailganer \u0026\u0026 cd mailganer\n```\nCreate virtual environment, activate and install dependencies:\n```sh\nvirtualenv --python=python2.7 mailganer_env \u0026\u0026\nsource mailganer_env/bin/activate \u0026\u0026\npoetry install\n```\nnow its time to create `.env` file, you can edit `.env.example` and then rename it with `.env`.  \nYou need:  \n- `DJANGO_SECRET_KEY` - you can generate it [here](https://djecrety.ir/)\n- `EMAIL_HOST_USER` (required) - your [business account](https://www.gmail.com)\n- `EMAIL_HOST_PASSWORD`(required) - [password for application](https://support.google.com/accounts/answer/185833?hl=ru)\n\n- `DEBUG` (optional) - 1 if you need debug mode (default - `False`)\n- `ALLOWED_HOSTS` (optional) - your hosts (default - `127.0.0.1`)\n- `EMAIL_HOST` (optional) - host of your email service (default - `smtp.gmail.com`)\n- `EMAIL_PORT` (optional) - port (default - `465` for ssl connection)\n- `EMAIL_USE_SSL` (optional) - `0` if you want to use TSL (default - `1`)\n- `EMAIL_USE_TSL` (optional) - `1` if you want to use SSL (default - `0`)\nAfter creating `.env` you can finish setup of django application and create superuser:\n```sh\npython manage.py migrate \u0026\u0026 python manage.py createsuperuser\n```\n## Usage\nFor using app you should launch django app, celery worker and redis-server:\n```sh\nredis-server \u0026\u0026 python manage.py runserver | python -m celery -A mailganer worker -l info\n```\nnow you can enter django admin `{your_host}/admin` using superuser login and password.  \nTo make your first distribution you should:\n- create Subscriber objects - people who will take your letters.\n- create template in html format. You can use `firstname`, `lastname`, `birthday` and `email` of your subscribers. This data will add automaticaly (example below).\n- create message object.\n- select message and choose `send message` option.\n### Template example\n```\n\u003cdiv style=\"font-family: 'Droid Sans Mono', 'monospace', monospace; font-size: 14px; line-height: 19px; white-space: pre;\"\u003e\n    \u003cdiv\u003eВас зовут: {{ firstname }} {{ lastname }}.\u003c/div\u003e\n    \u003cdiv\u003eВаш день рождения: {{ birthday }}.\u003c/div\u003e\n    \u003cbr /\u003e\n    \u003cdiv\u003eВаша почта: {{ email }}\u003c/div\u003e\n\u003cimg src=\"{{ open_pixel_url }}\" width=\"1px\" height=\"1px\" border=\"0\"/\u003e\n\u003c/div\u003e\n```\n`\u003cimg src=\"{{ open_pixel_url }}\" width=\"1px\" height=\"1px\" border=\"0\"/\u003e` - pixel for open letter report","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filyashirko%2Fmailganer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filyashirko%2Fmailganer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filyashirko%2Fmailganer/lists"}