We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Email body wrong

Hi Team,

We are saving the email as .msg file from mail server.
But after saving the msg file <!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><span style=“font-size:11.0pt;font-family:“Calibri”,sans-serif;
mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;color:#1F497D;
mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>then
hyphen( – ) is changing to question mark (?) in email Body
So can you pls let me know why it is happening.

In the attached excel file the customer mentioned the screenshot of both.

Regards
Anish
<!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman",serif;}

<![endif]–>

Hi Anish,


Thank you for contacting Aspose support team.

I was able to observe the issue in the attached Excel file however to re-produce the issue, actual email is required for further analysis.

Could you please provide the email file which is converted to MSG file for our testing? It will help to observe the problem and provide solution as soon as possible?

Please find the attached original mail.

We are trying to save this to our local folder . Then the “-” mrk changing to "?"

Can you please check this?

Regards
Anish

Hi Anish,


I have received following message files:

  • TEST Arbor Pharmaceuticals LLC - 00464388(Aspose.Email Evaluation).msg
  • TEST Change Report scanned as a Census - ACTION REQUIRED.msg

These MSG files are loaded into MailMessage and saved back as MSG file again however no issue is observed. Could you please confirm if these are the source emails which are downloaded from the server? If not, please send us the source EML files along with the sample code used for conversion. I have tried the following code:


MailMessage mail = MailMessage.Load(@“TEST Arbor Pharmaceuticals LLC - 00464388(Aspose.Email Evaluation).msg”, MailMessageLoadOptions.DefaultMsg);
mail.Save(@“Output1.msg”, SaveOptions.DefaultMsgUnicode);
MailMessage mail2 = MailMessage.Load(@“TEST Change Report scanned as a Census - ACTION REQUIRED.msg”, MailMessageLoadOptions.DefaultMsg);
mail2.Save(@“Output11.msg”,SaveOptions.DefaultMsgUnicode);

While we try to save the mail using above format I e
msg.Save(Path.Combine(email.EmailFolderPath, newItemName, SaveOptions.DefaultMsgUnicode);

we are not getting this option I e SaveOptions.DefaultMsgUnicode

currently we are trying to save it with below code
msg.Save(Path.Combine(email.EmailFolderPath, newItemName + “.msg”),MessageFormat.Eml);

Please help.
We are using aspose dll version

Aspose.Email
Version : v2.0.50727

Hi Anish,

Your code sample shows that you are using an older version of Aspose.Email API. Please download the latest version of the Aspose.Email for .NET 6.3.0 and try with it. Please let us know your feedback then.

The new dll Aspose.email version(6.3.00) seems fine for us.
Please let us know the renew subscription procedures and cost.

Currently we are getting the below error while trying to run with new dll after registering with license key.Please help



w

Hi Anish,

Thank you for sharing your feedback.

Please post your inquiry on Aspose.Purchase forum to get information about subscription renewal. You can also get a 30-day temporary license free of cost for evaluating the product completely without any limitations.