On Thu, Mar 8, 2012 at 4:58 PM, Scott Macri <scottma...@gmail.com> wrote: > I've come to the conclusion that send_mail and send_mass_mail cannot > be used with sqlite due to a but with the message text. > > Attempting to pull a string from the sqlite database and putting it > into the message field on either of the above mentioned functions > causes the message sending to fail without an exception even if > fail_silently = True. > > I have been pulling my hair out over this for the last couple of days > and cannot get either method to work when using simple text, "test > text", pulled out of an sqlite database. > > Anyone have any success with this? >
I would start sticking breakpoints (import pdb; pdb.set_trace()) in interesting functions and seeing why it fails. I would suspect that something that you think is a string, is not. Make sure you look at repr(obj), and not print obj - the latter will convert to a string. Cheers Tom -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.