Using Aspose.Email v 2.9.0.0 we have an email with the following properties...
IsHtmlBody=true
Body="Some text"
HtmlBody=""
we amend the body by assigning to Body and all is well.
However, if we save the email to a stream and load from that stream then we have...
IsHtmlBody=true
Body="Some text"
HtmlBody="SomeText"
which is fine except that sometimes I need to amend the message body after loading it - how should I do that? Blank out HtmlBody and add to Body or add to both?
The situation arose because if I just add to Body then I get an email with 2 text/html parts and in many email clients it only shows the second part (which has the body content from before the load). Here's an example...
Content-Type: multipart/alternative; boundary="--_=_NextPart0_69661c48-2255-4aff-b6ec-255074e553b8" ----_=_NextPart0_69661c48-2255-4aff-b6ec-255074e553b8 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Original Body
<br /> Added after load
----_=_NextPart0_69661c48-2255-4aff-b6ec-255074e553b8 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Original Body ----_=_NextPart0_69661c48-2255-4aff-b6ec-255074e553b8--
TIA
Dan