In your settings.py, make sure you set EMAIL_HOST correctly. 1. test if you are able to email with a simple python program: If you have comcast cable in your home, this should work:
----------------------------------- import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def email_me(myRecipient): me = "whatevermyem...@gmail.com" EMAIL_HOST='smtp.comcast.net' # Create message container - the correct MIME type is multipart/alternative. msg = MIMEMultipart('alternative') msg['Subject'] = "Test email" msg['From'] = me msg['To'] = myRecipient # Create the body of the message (a plain-text and an HTML version). text = """ this is just a test """ html = """\ <html> <head> </head><body> <li> This is just a test <br> </li> </body> </html> """ part1 = MIMEText(text, 'plain') part2 = MIMEText(html, 'html') msg.attach(part1) msg.attach(part2) # Send the message via local SMTP server. s = smtplib.SMTP(EMAIL_HOST) # sendmail function takes 3 arguments: sender's address, recipient's address # and message to send - here it is sent as one string. s.sendmail(me, myRecipient, msg.as_string()) s.quit() ################ # --- MAIN --- # ################ email_me("mywhatver_em...@gmail.com") ---------------------------------------------------------------------------------------------------------------------- 2. Once above test email code works, you can set the EMAIL_HOST in your settings.py to the same. On Fri, Oct 16, 2009 at 12:28 AM, grimmus <graham.col...@gmail.com> wrote: > > Hi, > > I am setting up the password reset function in my app. > > When i click 'Reset my password' i get the error > > (10061, 'No connection could be made because the target machine > actively refused it') > > I am guessing it's because there is trouble sending the email. How can > i setup my machine to be able to send emails ? > > My app is running on localhost:8888 > > Thanks for any info. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---