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

queue_email_message should limit subject to 255 chars #18

Open
ishirav opened this issue Jan 26, 2012 · 0 comments
Open

queue_email_message should limit subject to 255 chars #18

ishirav opened this issue Jan 26, 2012 · 0 comments

Comments

@ishirav
Copy link

ishirav commented Jan 26, 2012

When queue_email_message gets an EmailMessage with a long subject line (more than 255 chars) it tries to put all of it into Message.subject but since it has a maximum length of 255, PostgreSQL refuses to write this record.
When creating the Message you should take email_message.subject[:255] to prevent this.

mjtorn pushed a commit to mjtorn/django-mailer-2 that referenced this issue Nov 17, 2014
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

No branches or pull requests

1 participant