Re: send_mail issue

2011-06-08 Thread Bobby Roberts
got it... worked like a charm. i read that but it didn't click the first time. thanks again! On Jun 8, 9:50 pm, David Graves wrote: > Fromhttps://docs.djangoproject.com/en/dev/topics/email/#django.core.mail > like attachments argument should be a list of tuples, so instead of > attachments=

Re: send_mail issue

2011-06-08 Thread David Graves
From https://docs.djangoproject.com/en/dev/topics/email/#django.core.mail.EmailMessagelooks like attachments argument should be a list of tuples, so instead of attachments=(filename,filecontent,'application/vnd.ms-excel'), try attachments=[(filename,filecontent,'application/vnd.ms-excel')]. If tha

Re: send_mail issue

2011-06-08 Thread Bobby Roberts
hey david... that got past he original error but now i'm getting this: _create_attachment() takes at most 4 arguments (37 given) i think this is happening from the content argument maybe? any idea how to get around that? On Jun 8, 8:38 pm, David Graves wrote: > from django.core.mail import E

Re: send_mail issue

2011-06-08 Thread David Graves
from django.core.mail import EmailMessage On Wed, Jun 8, 2011 at 7:35 PM, Bobby Roberts wrote: > hi all... i'm trying to send an email attachment and am getting the > following traceback: > > global name 'EmailMessage' is not defined > > Here's the code: > > [...] >from django.core.mail impo

Re: send_mail issue

2011-06-08 Thread Kenneth Gonsalves
On Wed, 2011-06-08 at 17:35 -0700, Bobby Roberts wrote: > global name 'EmailMessage' is not defined where does 'EmailMessage' come from? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Goo

Re: send_mail issue

2011-06-08 Thread Bobby Roberts
that should be message = EmailMessage(subject, emailmsg,'fromem...@domainname.com',to_email,attachments=(filename,filecontent,'application/ vnd.ms-excel')) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

send_mail issue

2011-06-08 Thread Bobby Roberts
hi all... i'm trying to send an email attachment and am getting the following traceback: global name 'EmailMessage' is not defined Here's the code: [...] from django.core.mail import send_mail list2send = mymodel.objects.filter(idNumber = 3) filecontent = render_to_string('template_

Django send_mail issue

2010-12-16 Thread Vikesh
Hi, I have never used sendmail in Ubuntu and I am not too good at networks. I was trying to implement a mail application in Django where I send a mail to the newly registered user for confirmation. I used the following settings in my settings.py file : EMAIL_HOST='localhost' #EMAIL_HOST_USER='vike

send_mail issue

2010-12-12 Thread Vikesh Khanna
Hi, I have never used sendmail in Ubuntu and I am not too good at networks. I was trying to implement a mail application in Django where I send a mail to the newly registered user for confirmation. I used the following settings in my settings.py file : * *EMAIL_HOST='localhost' #EMAIL_HOST_USER='vi