Message
From
17/11/2006 04:05:53
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
17/11/2006 03:51:59
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01170607
Message ID:
01170616
Views:
10
Example
MailMessage.BodyEncoding = System.Text.Encoding.GetEncoding("Western European (ISO)")
By default the BodyEncoding property of the MailMessage class is us-ascii" and as we all know english language doesn't know what the heck is a letter with an accent.


>Hi Michel what can be diferent is encoding try to set the encoding in the vb.net App to Western European ISO since that's what outlook uses by default.
>
>
>>I have a VB.NET application whichs create emails. Some of that is read on the WorldClient, from MDaemon. The problem only relies on the email subject. If I create an email from Outlook and I put French characters in the subject, when the email arrives on WorldClient, the French characters are ok. However, if I put the same text in the VFP record and send that record from the VB.NET application, WorldClient is doing a weird conversion on those characters. The subject is the same source. There is no conversion. It is a simple as:
>>
>>
>>Test à Michel éèÉé
>>
>>
>>But, if I send the same VFP record into another email which uses Outlook, I can read the subject as is. The problem only relies on WorldClient combined with an email sent from VB.NET.
>>
>>What could be done differently in .NET that would cause this reaction?
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View