{"id":44343484,"url":"https://github.com/openlibhums/django_selective_email_backend","last_synced_at":"2026-02-11T13:11:20.270Z","repository":{"id":306409262,"uuid":"870544402","full_name":"openlibhums/django_selective_email_backend","owner":"openlibhums","description":"Selects between django_mailgun and the builtin SMTP backend depending on the set from address.","archived":false,"fork":false,"pushed_at":"2025-07-25T09:31:07.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-25T15:37:34.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openlibhums.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-10-10T08:30:19.000Z","updated_at":"2024-10-10T13:13:38.000Z","dependencies_parsed_at":"2025-07-25T15:41:49.019Z","dependency_job_id":"cde7a3a0-bdc7-49b5-932e-528bfddc6338","html_url":"https://github.com/openlibhums/django_selective_email_backend","commit_stats":null,"previous_names":["openlibhums/django_selective_email_backend"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/openlibhums/django_selective_email_backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlibhums%2Fdjango_selective_email_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlibhums%2Fdjango_selective_email_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlibhums%2Fdjango_selective_email_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlibhums%2Fdjango_selective_email_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openlibhums","download_url":"https://codeload.github.com/openlibhums/django_selective_email_backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlibhums%2Fdjango_selective_email_backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-11T13:11:19.561Z","updated_at":"2026-02-11T13:11:20.263Z","avatar_url":"https://github.com/openlibhums.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Selective Email Backend\n\nA Django email backend that dynamically selects between Django's SMTP backend and a configurable email backend based on the sender's email address. Configure specific email addresses to use SMTP while falling back to a default backend for all other addresses.\n\n## Features\n- Automatically routes emails based on the sender's address.\n- Uses SMTP for specific addresses defined in your Django settings.\n- Defaults to a configurable backend (eg django_mailgun) for all other addresses.\n- Simple integration with existing Django projects.\n\n## Installation\n\nInstall directly from GitHub using `pip`:\n\n```bash\npip install -e git+ssh://git@github.com/openlibhums/django_selective_email_backend@v0.0.2#egg=django-selective-email-backend\n```\n\n## Configuration\n\nAdd the backend to your settings.py:\n\n```python\nEMAIL_BACKEND = 'selective_email_backend.backends.SelectiveEmailBackend'\n```\n\nDefine the SMTP email addresses and other relevant settings:\n\n\n```python\n# settings.py\nINSTALLED_APPS = [\n    ...\n    'selective_email_backend',\n    ...\n]\n\nDEFAULT_EMAIL_BACKEND = 'django_mailgun.MailgunBackend'\nSMTP_EMAIL_ADDRESSES = [\n    'janeway@janeway.systems',\n    'chakotay@janeway.systems',\n]\n\n# Mailgun settings\nMAILGUN_ACCESS_KEY = 'mailgun-access-key'\nMAILGUN_SERVER_NAME = 'mailgun-server-name'\n\n# SMTP settings\nEMAIL_HOST = 'smtp.janeway.systems'\nEMAIL_PORT = 587\nEMAIL_USE_TLS = True\nEMAIL_HOST_USER = 'smtp-user-name'\nEMAIL_HOST_PASSWORD = 'smtp-password'\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlibhums%2Fdjango_selective_email_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenlibhums%2Fdjango_selective_email_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlibhums%2Fdjango_selective_email_backend/lists"}