0

what is set_payload in python?

attachment =open(filename,'rb') part.set_payload((attachment).read()) encoders.encode_base64(part)

22nd Feb 2019, 5:11 PM
kokito
3 Respostas
+ 1
In Python, set_payload is a method of the class email.message.Message()
22nd Feb 2019, 8:36 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
https://docs.python.org/3/library/email.compat32-message.html?highlight=set_payload#email.message.Message.set_payload
22nd Feb 2019, 8:37 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
what is message class?
22nd Feb 2019, 9:19 PM
kokito