Skip to content

AttributeError: Mail instance has no attribute '__len__' #103

@slaupster

Description

@slaupster

Following the example here:

https://sendgrid.com/docs/Integrate/Code_Examples/python.html

I get:

File "c:\Python27\lib\site-packages\sendgrid\sendgrid.py", line 116, in send
return self._legacy_send(message)
File "c:\Python27\lib\site-packages\sendgrid\sendgrid.py", line 120, in _legacy_send
return self._make_request(message)
File "c:\Python27\lib\site-packages\sendgrid\sendgrid.py", line 100, in _make_request
data = urlencode(self._build_body(message), True).encode('utf-8')
File "c:\Python27\lib\urllib.py", line 1343, in urlencode
len(v)
AttributeError: Mail instance has no attribute 'len'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions