Tuesday, May 17, 2011

Re: Email app is breaking long lines, any fix?

> What are you *actually* doing to send this email?

This is the basic version - the one with two headers, I was
experimenting with a MIMEText object:

from django.core.mail import send_mail

def page_worked(request):
the_text = u'this is a test of a really long line that has more
words that could possibly fit in a single column of text.'
send_mail('some_subject', the_text, 'me@test.com',
['me@test.com'])

However - this is not the *actual* problem, only sample code - the
*actual* problem is with the django-registration app. Given a text
template to create a registration email, it's breaking the lines.

Although it would be nice to understand everything that's going on
here - all I *really* want to do is have the app send non-broken
email. :)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate