Loading AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -408,6 +408,7 @@ answer newbie questions, and generally made Django that much better: lerouxb@gmail.com Liang Feng <hutuworm@gmail.com> limodou Loek van Gent <loek@barakken.nl> Loïc Bistuer <loic.bistuer@sixmedia.com> Lowe Thiderman <lowe.thiderman@gmail.com> Luan Pablo <luanpab@gmail.com> Loading django/core/management/commands/sendtestemail.py 0 → 100644 +20 −0 Original line number Diff line number Diff line import datetime import socket from django.core.mail import send_mail from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = "Sends a test email to the email addresses specified as arguments." args = "<email1 email2 ...>" def handle(self, *args, **kwargs): if not args: raise CommandError('You must provide at least one destination email.') send_mail( subject='Test email from %s on %s' % (socket.gethostname(), datetime.datetime.now()), message="If you\'re reading this, it was successful.", from_email=None, recipient_list=args, ) docs/ref/django-admin.txt +12 −0 Original line number Diff line number Diff line Loading @@ -875,6 +875,18 @@ By default, the development server doesn't serve any static files for your site you want to configure Django to serve static media, read :doc:`/howto/static-files/index`. sendtestemail ------------- .. django-admin:: sendtestemail .. versionadded:: 1.9 Sends a test email (to confirm email sending through Django is working) to the recipient(s) specified. For example:: django-admin sendtestemail foo@example.com bar@example.com shell ----- Loading docs/releases/1.9.txt +2 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,8 @@ Internationalization Management Commands ^^^^^^^^^^^^^^^^^^^ * ... * The new :djadmin:`sendtestemail` command lets you send a test email to easily confirm that email sending through Django is working. Models ^^^^^^ Loading docs/spelling_wordlist +1 −0 Original line number Diff line number Diff line Loading @@ -682,6 +682,7 @@ screenshots sdist semimajor semiminor sendtestemail serializability serializable serializer Loading Loading
AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -408,6 +408,7 @@ answer newbie questions, and generally made Django that much better: lerouxb@gmail.com Liang Feng <hutuworm@gmail.com> limodou Loek van Gent <loek@barakken.nl> Loïc Bistuer <loic.bistuer@sixmedia.com> Lowe Thiderman <lowe.thiderman@gmail.com> Luan Pablo <luanpab@gmail.com> Loading
django/core/management/commands/sendtestemail.py 0 → 100644 +20 −0 Original line number Diff line number Diff line import datetime import socket from django.core.mail import send_mail from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = "Sends a test email to the email addresses specified as arguments." args = "<email1 email2 ...>" def handle(self, *args, **kwargs): if not args: raise CommandError('You must provide at least one destination email.') send_mail( subject='Test email from %s on %s' % (socket.gethostname(), datetime.datetime.now()), message="If you\'re reading this, it was successful.", from_email=None, recipient_list=args, )
docs/ref/django-admin.txt +12 −0 Original line number Diff line number Diff line Loading @@ -875,6 +875,18 @@ By default, the development server doesn't serve any static files for your site you want to configure Django to serve static media, read :doc:`/howto/static-files/index`. sendtestemail ------------- .. django-admin:: sendtestemail .. versionadded:: 1.9 Sends a test email (to confirm email sending through Django is working) to the recipient(s) specified. For example:: django-admin sendtestemail foo@example.com bar@example.com shell ----- Loading
docs/releases/1.9.txt +2 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,8 @@ Internationalization Management Commands ^^^^^^^^^^^^^^^^^^^ * ... * The new :djadmin:`sendtestemail` command lets you send a test email to easily confirm that email sending through Django is working. Models ^^^^^^ Loading
docs/spelling_wordlist +1 −0 Original line number Diff line number Diff line Loading @@ -682,6 +682,7 @@ screenshots sdist semimajor semiminor sendtestemail serializability serializable serializer Loading