SHARE
TWEET

Send email with Django

kroger Aug 3rd, 2011 288 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Traceback (most recent call last):
  2.   File "<console>", line 1, in <module>
  3.   File "/home/kroger/webapps/quicktestgenerator/quicktestgenerator/sendmail.py", line 2, in <module>
  4.     send_mail(u"test", u"foobar", u"bug@quicktestgenerator.com", [u"pedro.kroger@gmail.com"], fail_silently=False)
  5.   File "/home/kroger/.virtualenvs/quicktestgenerator/lib/python2.7/site-packages/django/core/mail/__init__.py", line 61, in send_mail
  6.     connection=connection).send()
  7.   File "/home/kroger/.virtualenvs/quicktestgenerator/lib/python2.7/site-packages/django/core/mail/message.py", line 251, in send
  8.     return self.get_connection(fail_silently).send_messages([self])
  9.   File "/home/kroger/.virtualenvs/quicktestgenerator/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 79, in send_messages
  10.     new_conn_created = self.open()
  11.   File "/home/kroger/.virtualenvs/quicktestgenerator/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 48, in open
  12.     self.connection.login(self.username, self.password)
  13.   File "/usr/local/lib/python2.7/smtplib.py", line 577, in login
  14.     (code, resp) = self.docmd(encode_cram_md5(resp, user, password))
  15.   File "/usr/local/lib/python2.7/smtplib.py", line 541, in encode_cram_md5
  16.     response = user + " " + hmac.HMAC(password, challenge).hexdigest()
  17.   File "/usr/local/lib/python2.7/hmac.py", line 72, in __init__
  18.     self.outer.update(key.translate(trans_5C))
  19. TypeError: character mapping must return integer, None or unicode
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top