Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "Email.py", line 31, in <module>
- server.sendmail(fromaddr, to, str(msg))
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/message.py", line 122, in __str__
- return self.as_string(unixfrom=True)
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/message.py", line 137, in as_string
- g.flatten(self, unixfrom=unixfrom)
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/generator.py", line 83, in flatten
- self._write(msg)
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/generator.py", line 115, in _write
- self._write_headers(msg)
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/generator.py", line 164, in _write_headers
- v, maxlinelen=self._maxheaderlen, header_name=h).encode()
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 410, in encode
- value = self._encode_chunks(newchunks, maxlinelen)
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/header.py", line 370, in _encode_chunks
- _max_append(chunks, s, maxlinelen, extra)
- File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/quoprimime.py", line 97, in _max_append
- L.append(s.lstrip())
- AttributeError: 'list' object has no attribute 'lstrip'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement