django sending emails
Posted
by dotty
on Stack Overflow
See other posts from Stack Overflow
or by dotty
Published on 2010-06-10T11:06:36Z
Indexed on
2010/06/10
11:12 UTC
Read the original article
Hit count: 380
Hay, i can't seem to send emails using send_mail(), and I'm not sure why.
Here's my details
settins.py
EMAIL_HOST = 'localhost',
EMAIL_PORT = 25
My view
from django.core.mail import send_mail
send_mail('Subject here', 'Here is the message.', '[email protected]',
['[email protected]'], fail_silently=False)
This fails with the error
getaddrinfo() argument 1 must be string or None
Anyone have any ideas?
I'm developing on OS X Leopard
Heres the last traceback
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/smtplib.py in connect
for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM): ...
? Local vars
Variable Value
host ('localhost',)
msg 'getaddrinfo returns an empty list'
port 25
self <smtplib.SMTP instance at 0x153b1e8>
© Stack Overflow or respective owner