更新时间:2022-11-16 22:59:42
您应该能够从电子表格数据中创建内存中的MimeBase对象,在attach方法中附加该对象。 attach方法会使用文件三元组或MimeBase对象。有关MimeBase和 pydoc描述。 wordpress.com/2012/01/13/send-emails-using-python/rel =nofollow>一个例子。
You should be able to create a MimeBase object in memory from the spreadsheet data and attach that object in the attach method. The attach method takes the file triplet or a MimeBase object. See pydoc description about MimeBase and an example.