List Info

Thread: Email error ...




Email error ...
country flaguser name
United States
2007-04-30 13:02:04
So basically I'm sending off an email like this ...

send_mail(email_title, email_text, new_data.get('email'),
'myaddresshotmail.com')

It seems to think that the myaddress email is a list, and it
breaks it
up and sends letter at a time.

So that any reply is addressed to mmyserver.com, ymyserver.com,
amyserver.com ... ( spelling out myaddresshotmail.com )

I've tried ['myaddresshotmail.com']. No luck though. I'm out of
ideas. I've looked at the python docs and I can only find a
sendmail(), not a send_mail() .... :-(


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


Re: Email error ...
user name
2007-04-30 13:08:57
On 4/30/07, dbee <daraburke78gmail.com> wrote:
...
> I've tried ['myaddresshotmail.com']. No luck
though. I'm out of
> ideas. I've looked at the python docs and I can only
find a
> sendmail(), not a send_mail() .... :-(


Are you sure you didn't try this:
('myaddresshotmail.com')
as opposed to this?
['myaddresshotmail.com']

The difference is important.  

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


Re: Email error ...
country flaguser name
Australia
2007-04-30 20:24:14
On Mon, 2007-04-30 at 18:02 +0000, dbee wrote:
> So basically I'm sending off an email like this ...
> 
> send_mail(email_title, email_text,
new_data.get('email'),
> 'myaddresshotmail.com')
> 
> It seems to think that the myaddress email is a list,
and it breaks it
> up and sends letter at a time.
> 
> So that any reply is addressed to mmyserver.com, ymyserver.com,
> amyserver.com ... ( spelling out myaddresshotmail.com )
> 
> I've tried ['myaddresshotmail.com']. No luck
though. I'm out of
> ideas. I've looked at the python docs and I can only
find a
> sendmail(), not a send_mail() .... :-(

That (lack of documentation in the Python docs) would be
because
send_mail is part of Django. Notice that you import it from
django.core.mail.

See htt
p://www.djangoproject.com/documentation/email/ .

The list of addressees should be a list, not a single
string. That's why
the parameter is called "recipient_list".

Regards,
Malcolm



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


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )