You can send a message with a file attachment using the Symphony Python client by using the comand below:
message = dict(message = '<messageML>Hello World</messageML>',
attachment = ("filename.ext", open("filepath\\filename.ext", "rb"), "MIMEType")
Figure 1 Command
Note: The MIMEType is the MIME type of the file you specified, for example a jpeg will be image/jpeg.
Note: If a MIME type does not exist for your file, use application/octet-stream which is the MIME Type for binary data.
If you are experiencing issues sending attachment using the Symphony Python client, please contact the Symphony Support team at support@symphony.com for further assistance.