Thanks for your inquiry.
I was able to reproduce this bug by using similar code as yours. I have also added it in our bug tracking system (ID: 11946). We will look into it and get back to you as soon as it is fixed. Sorry for the inconvenience.
I would like to implement the same functionality as described in the post. Can you please keep me updated as well?
Ron van Leeuwen
Please subscribe to this thread, you will get a notification/update when this functionality is available.
We are facing the same problem with Aspose.Network (version 18.104.22.168). Posted email displayed empty body with html attachment. Could you please provide the solution.
The issues you have found earlier (filed as 11946) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
Currently I’m evaluating the latest version of Aspose.Network (22.214.171.124) and I’m still getting the messages with an empty body and the message included as “document.html” attachment. I’ve even tried the 126.96.36.199 version - same results.
While debugging I see that the message is properly formated, HTML body is correctly set but while the message is being sent then something is going wrong I guess. Could you look at this issue please as we really need this functionality?
I've attached a demo project where you can reproduce this issue. You would need to change the email addresses and the smtp host as well.
Aspose.Words I've used here is version 6.6 but the latest version does not change anything here.
P.S. I guess you will need to update your documentation. Over here: http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/howto-convert-a-document-to-mhtml-and-email.html the following Load() function is used:
MailMessage message = MailMessage.Load(stream);
but in the sample you've been referring to:
MailMessage message = MailMessage.Load(stream, MessageFormat.Mht)
This makes a huge difference as the message is delivered properly now. Thank you.