Last active
November 22, 2023 03:39
-
-
Save aspose-com-gists/1dbc5b4bf28dba34207d9bb94cbc149e to your computer and use it in GitHub Desktop.
Email to Word and Word to Email Conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.words as aw | |
msg= MailMessage.load(dir + "msgtemplate.msg") | |
msg.save("htmloutput.html", SaveOptions.default_html) | |
doc = aw.Document("htmloutput.html") | |
doc.save("emailtoword.docx") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.words as aw | |
doc = aw.Document("wordtoemail.docx") | |
doc.save("htmloutput.html") | |
msg= MailMessage.load(dir + "htmloutput.html") | |
msg.save("emloutput.eml", SaveOptions.default_eml) |
Missing definition for MailMessage . . .
oh, I see, thank you, I will try it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, I try to execute "word to email" but error log as ["SaveOptions" is not definedPylance].
What applicatio should I install?
Cloud you help me to fix the error message?