SmileyChris/django-mailer-2 — Issue #18: queue_email_message should limit subject to 255 chars
Author: ishirav
Created: 2012-01-26 12:32:29+00:00
State: open

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.