在 Python 中转换电子邮件

Aspose.Email - 转换电子邮件消息

使用 Aspose.Email Java for Python 转换电子邮件消息,请使用以下代码。

Python 代码


 # Initialize and Load an existing EML file by specifying the MessageFormat

mailMessage = self.MailMessage

eml = mailMessage.load(self.dataDir + "Message.eml")

\# Save the Email message to disk in Unicode format

saveOptions= self.SaveOptions

eml.save(self.dataDir + "AnEmail.msg", saveOptions.getDefaultMsgUnicode())

\# Display Status

print "Converted email to msg successfully."

下载运行代码

从以下任意提到的社交编码站点下载 转换电子邮件消息 (Aspose.Email)