title: AttributeError: encode
body: <p>I am getting the below error when I pass pretty table</p>
  
  <pre><code>    msg = MIMEText(self.body)
    File "/usr/lib64/python2.6/email/mime/text.py", line 30, in __init__
      self.set_payload(_text, _charset)
    File "/usr/lib64/python2.6/email/message.py", line 224, in set_payload
      self.set_charset(charset)
    File "/usr/lib64/python2.6/email/message.py", line 266, in set_charset
      cte(self)
    File "/usr/lib64/python2.6/email/encoders.py", line 73, in encode_7or8bit
      orig.encode('ascii')
    File "/usr/lib/python2.6/site-packages/prettytable.py", line 217, in __getattr__
      raise AttributeError(name)
  AttributeError: encode
  </code></pre>