From eb9c9ab4d04c03bfe4d5108f7452cca572f68c56 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 15 Jul 2005 16:47:19 +0000 Subject: [PATCH] Changed django.core.mail to use [Django] prefix instead of [CMS] git-svn-id: http://code.djangoproject.com/svn/django/trunk@54 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/mail.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/django/core/mail.py b/django/core/mail.py index c6969c16ca..ec84ee3b3b 100644 --- a/django/core/mail.py +++ b/django/core/mail.py @@ -1,6 +1,4 @@ -""" -Use this for e-mailing -""" +# Use this module for e-mailing. from django.conf.settings import DEFAULT_FROM_EMAIL, EMAIL_HOST from email.MIMEText import MIMEText @@ -43,9 +41,9 @@ def send_mass_mail(datatuple, fail_silently=False): def mail_admins(subject, message, fail_silently=False): "Sends a message to the admins, as defined by the ADMINS constant in settings.py." from django.conf.settings import ADMINS, SERVER_EMAIL - send_mail('[CMS] ' + subject, message, SERVER_EMAIL, [a[1] for a in ADMINS], fail_silently) + send_mail('[Django] ' + subject, message, SERVER_EMAIL, [a[1] for a in ADMINS], fail_silently) def mail_managers(subject, message, fail_silently=False): "Sends a message to the managers, as defined by the MANAGERS constant in settings.py" from django.conf.settings import MANAGERS, SERVER_EMAIL - send_mail('[CMS] ' + subject, message, SERVER_EMAIL, [a[1] for a in MANAGERS], fail_silently) + send_mail('[Django] ' + subject, message, SERVER_EMAIL, [a[1] for a in MANAGERS], fail_silently)