UGH, I guess that wasn't the issue. Its back again. I don't know what the deal is.
On Wed, Mar 7, 2012 at 9:29 PM, Scott Macri <scottma...@gmail.com> wrote: > I just figured this one out: > > Basically in the view I had the following just before calling the save > method on the database: > object.email_template = form.cleaned_data['email_message'] > > instead of > object.email_message = form.cleaned_data['email_message'] > > The strange thing is that the data was actually being stored in the > correct field in the database, and was coming out correctly, but > something went haywire when I tried to wrap it in a message. > > On Wed, Mar 7, 2012 at 9:13 PM, Scott Macri <scottma...@gmail.com> wrote: >> This one never sends the message: >> >> print object.email_message >> some test text >> >> mailer.sendMessage('subject3',object.email_message,user.email,[person.email]) >> >> This one works fine: >> >> mailer.sendMessage('subject3','a test message >> here',user.email,[person.email]) >> >> On Wed, Mar 7, 2012 at 9:05 PM, Scott Macri <scottma...@gmail.com> wrote: >>> It appears to be an issue with the content for the message being >>> pulled from the database. I tried putting the text "text" in the >>> database, and pulling it out and for some reason it prevents the >>> message from being sent. The db field is configured as follows: >>> email_message = models.CharField(max_length = 750,blank=True) >>> I then do the following call message = object.email_message and pass >>> it to the send_mail function. For some reason the message never gets >>> sent. If I do the call without getting the data from the database it >>> works fine. >>> >>> On Wed, Mar 7, 2012 at 8:51 PM, Scott Macri <scottma...@gmail.com> wrote: >>>> I'm having a strange issue with send_mail. I created a py script with >>>> a function to call send_mail. If I call the method via IDLE it works >>>> great. If I call the method with the exact same way with the exact >>>> same data via another script the message never gets sent. The strange >>>> thing is that an error is never thrown. >>>> >>>> Anyone ever see this before? Thanks. >>>> >>>> -- -- Scott A. Macri www.ScottMacri.com (571) 234-1581 -- 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.