On Jul 5, 12:37 am, Dj Gilcrease <digitalx...@gmail.com> wrote:
> You have the following set correctly in your settings.py?
>
> EMAIL_HOST
> EMAIL_HOST_USER
> EMAIL_HOST_PASSWORD

Thanks for the info.

After setting above values and running smtpd on machine,
It throws following exception
"SMTPServerDisconnected at /ask/2/2/

Connection unexpectedly closed"


I am using following code to send email

""
  from django.core.mail import send_mail

            subject = render_to_string('sub.txt')

            subject = ''.join(subject.splitlines())

            message = render_to_string('test.txt')
            send_mail(subject,message,'e...@example. net',[emailid])
""



Debug output:
# /home/sunny/dojodev/dojo/django/core/mail.py in _send

 179. def _send(self, email_message):
 180. """A helper method that does the actual sending."""
 181. if not email_message.recipients():
 182. return False
 183. try:
 184. self.connection.sendmail(email_message.from_email,
 185. email_message.recipients(),

** 186. email_message.message().as_string()) ... **

 187. except:
 188. if not self.fail_silently:
 189. raise
 190. return False
 191. return True


Thanks In Advance
Guri


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to