我主要想把.html文件转换成.msg文件。我已经把味精转换成html,但我不能用其他方法 关于这一点,你可以参考
import aspose.email as ae
from aspose.email import MailMessage, SaveOptions, HtmlFormatOptions
# Load EML message
msg = MailMessage.load("Message.msg")
# Set SaveOptions
options = SaveOptions.default_html
options.embed_resources = False
options.HtmlFormatOptions = HtmlFormatOptions.WriteHeader | HtmlFormatOptions.WriteCompleteEmailAddress #save the message headers to output HTML using the formatting options
# Convert msg to HTML
msg.save("SaveAsHTML.html", options)
目前没有回答
相关问题 更多 >
编程相关推荐