Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send mail refactor #14

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Send mail refactor #14

wants to merge 7 commits into from

Conversation

selwin
Copy link

@selwin selwin commented Jul 31, 2011

Hi Chris,

I made a new branch from your fork and applied my changes here. Take a look at it when you have time.

Thanks,
Selwin

@@ -26,8 +29,7 @@ def send_mail(subject, message, from_email, recipient_list,
arguments are not used.

"""
from django.core.mail import EmailMessage
from django.utils.encoding import force_unicode
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(the imports are kept locally because setup.py imports the package to get the version number)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed :)

@selwin selwin closed this Aug 2, 2011
@selwin selwin reopened this Aug 2, 2011

encoded_message = models.TextField()
message = models.TextField()
html_message = models.TextField(blank=True)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two things here...

Firstly, if we're changing the schema then we should probably use south.
Secondly, I'm not sure I like having html_message as a field. It seems like it'd be a better fit to have a MessageAlternative class and actually store it "properly"

mjtorn pushed a commit to mjtorn/django-mailer-2 that referenced this pull request Nov 17, 2014
- added a cron mode to the management commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants