{"id":17034979,"url":"https://github.com/justquick/django-send-email","last_synced_at":"2025-04-12T13:13:28.517Z","repository":{"id":8676661,"uuid":"10335102","full_name":"justquick/django-send-email","owner":"justquick","description":"Send emails from the command line using Django's settings","archived":false,"fork":false,"pushed_at":"2017-09-16T13:50:13.000Z","size":9,"stargazers_count":6,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T13:13:24.548Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justquick.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}},"created_at":"2013-05-28T12:26:09.000Z","updated_at":"2021-01-13T19:38:08.000Z","dependencies_parsed_at":"2022-07-21T12:18:36.043Z","dependency_job_id":null,"html_url":"https://github.com/justquick/django-send-email","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-send-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-send-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-send-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fdjango-send-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justquick","download_url":"https://codeload.github.com/justquick/django-send-email/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571863,"owners_count":21126522,"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":[],"created_at":"2024-10-14T08:45:10.174Z","updated_at":"2025-04-12T13:13:28.497Z","avatar_url":"https://github.com/justquick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email Command for Django\n\nThis app provides a simple management command for sending emails using your Django settings from the command line.\n\n\n## Install\n\nPull down the app:\n\n    $ pip install django-send-email\n\nAdd it to your `INSTALLED_APPS`:\n\n    INSTALLED_APPS = (\n      ...\n      'django_send_email'\n    )\n\n\n## Sending Emails\n\ndjango-send-email provides a management command named `send_email_message` to send emails from the command line.\n\n    $ django-admin.py send_email_message subject message user1@example.com user2@example.com\n\nSubject, message and at least one recipient are required. You can pass `ADMINS` or `MANAGERS` as any one of the recipients and django-send-email will fetch the recipients from the proper Django setting.\n\n    $ django-admin.py send_email_message subject message MANAGERS --bcc=ADMINS\n\nYou can also pass a filename as the message argument and django-send-email will use the file contents at the body of the email.\n\n    $ django-admin.py send_email_message subject /path/to/message.txt user1@example.com user2@example.com\n\nAlternatively you can use `-` as the message argument to read from standard input.\n\n    $ django-admin.py send_email_message subject - user1@example.com user2@example.com \u003c /path/to/message.txt\n    $ echo \"some message text\" | django-admin.py send_email_message subject - user1@example.com user2@example.com\n\n### Full Usage\n\n    Usage: manage.py send_email_message [options] \u003csubject\u003e \u003cmessage or file or \"-\"\u003e \u003crecipient1\u003e...\u003crecipientN\u003e\n\n    Sends an email to the specified email addresses.\n    Message can be a string, filename or \"-\" to read from stdin.\n\n    Options:\n      -v VERBOSITY, --verbosity=VERBOSITY\n                            Verbosity level; 0=minimal output, 1=normal output,\n                            2=verbose output, 3=very verbose output\n      --settings=SETTINGS   The Python path to a settings module, e.g.\n                            \"myproject.settings.main\". If this isn't provided, the\n                            DJANGO_SETTINGS_MODULE environment variable will be\n                            used.\n      --pythonpath=PYTHONPATH\n                            A directory to add to the Python path, e.g.\n                            \"/home/djangoprojects/myproject\".\n      --traceback           Print traceback on exception\n      --noinput             Tells Django to NOT prompt the user for input of any\n                            kind.\n      -f FROM_EMAIL, --from=FROM_EMAIL\n                            Email address to use to send emails from. Defaults to\n                            use settings.DEFAULT_FROM_EMAIL\n      -r, --raise-error     Exceptions during the email sending process will be\n                            raised. Default to failing silently\n      -n, --noprefix        Disables email subject prefix. Default behavior is to\n                            prepend settings.EMAIL_SUBJECT_PREFIX\n      -b BCC, --bcc=BCC     Comma separated list of email addresses for BCC\n      -c CC, --cc=CC        Comma separated list of email addresses for CC\n      --version             show program's version number and exit\n      -h, --help            show this help message and exit\n\n\n## Testing\n\nRunning the unittests is as simple as testing any other Django app\n\n    django-admin.py test django_send_email\n\nTo test the command on a development SMTP server, you can run the debug SMTP server from the `smtp` library.\n\n    $ python -m smtpd -n -c DebuggingServer localhost:1025\n\nJust make sure that Django is configured correctly to point at localhost:1025","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fdjango-send-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustquick%2Fdjango-send-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fdjango-send-email/lists"}