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=
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
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
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
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
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
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_
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
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
9 matches
Mail list logo