This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author l5g
Recipients l5g
Date 2009-02-18.01:36:03
SpamBayes Score 0.000853543
Marked as misclassified No
Message-id <1234920967.72.0.68808055681.issue5304@psf.upfronthosting.co.za>
In-reply-to
Content
When using smtplib to send mail, I meet this bug. Maybe the line
              """ enc = b2a_base64(s[i:i +
max_unencoded]).decode("ascii")""" 
should be changed to
               """ enc = b2a_base64((s[i:i +
max_unencoded]).encode()).decode("ascii")

File "/usr/local/lib/python3.0/smtplib.py", line 580, in login
    AUTH_PLAIN + " " + encode_plain(user, password))
  File "/usr/local/lib/python3.0/smtplib.py", line 545, in encode_plain
    return encode_base64("\0%s\0%s" % (user, password))
  File "/usr/local/lib/python3.0/email/base64mime.py", line 97, in
body_encode
    enc = b2a_base64(s[i:i + max_unencoded]).decode("ascii")
TypeError: b2a_base64() argument 1 must be bytes or buffer, not str
History
Date User Action Args
2009-02-18 01:36:07l5gsetrecipients: + l5g
2009-02-18 01:36:07l5gsetmessageid: <1234920967.72.0.68808055681.issue5304@psf.upfronthosting.co.za>
2009-02-18 01:36:05l5glinkissue5304 messages
2009-02-18 01:36:04l5gcreate