Hey Aspose
We sometimes get the subjects of Messages messed up (see screenshots).
Subject:
Valentin Hernandez Lima hat Geschäftsbrief 14251 erledigt
This is how the header details look:
Return-Path: info@supertext.ch
Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46])
by slots14b1p3 (Cyrus git2.5+0-git-fastmail-7540) with LMTPA;
Wed, 07 Dec 2011 13:48:08 -0500
X-Sieve: CMU Sieve 2.4
X-Spam-charsets: subject=‘utf-8’, plain='utf-8’
X-Resolved-to: supertext@fastmail.fm
X-Delivered-to: info@supertext.ch
X-Mail-from: info@supertext.ch
Received: from mx4.nyi.mail.srv.osa ([10.202.2.203])
by compute6.internal (LMTPProxy); Wed, 07 Dec 2011 13:48:08 -0500
Received: from DED191.maximumasp.com (ded191.maximumasp.com [209.162.186.147])
by mx4.nyi.mail.srv.osa (Postfix) with ESMTP id E2C20180C9E
for info@supertext.ch; Wed, 7 Dec 2011 13:48:07 -0500 (EST)
Received: from DED191.maximumasp.local ([209.162.186.147]) by DED191.maximumasp.com with Microsoft SMTPSVC(7.5.7600.16544);
Wed, 7 Dec 2011 13:48:06 -0500
From: “Supertext System” info@supertext.ch
To: “Supertext Crew” info@supertext.ch
Subject:
=?utf-8?B?VmFsZW50aW7CoEhlcm5hbmRleiBMaW1hIGhhdCBHZXNjaMOkZnRzYnJpZWbC?=
=?utf-8?B?oDE0MjUxIGVybGVkaWd0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-ID: DED191GryWtIIZS2TRq00000bbf@DED191.maximumasp.com
X-OriginalArrivalTime: 07 Dec 2011 18:48:06.0771 (UTC) FILETIME=[C21D5C30:01CCB510]
Date: 7 Dec 2011 13:48:06 -0500
X-Truedomain-Domain: supertext.ch
X-Truedomain-SPF: No Record
X-Truedomain-DKIM: No Signature
X-Truedomain-ID: AEF78022E2B2634AB2E00D8ED0F85BF5
X-Truedomain: Neutral
And this is my code:
Aspose.Email.Mail.MailMessage msg = new Aspose.Email.Mail.MailMessage();
msg.From = new Aspose.Email.Mail.MailAddress(fromEmail, fromName);
msg.To.Add(new Aspose.Email.Mail.MailAddress(toEmail, toName));
msg.Subject = Subject;
msg.SubjectEncoding = System.Text.Encoding.UTF8;
msg.TextBody = Message;
msg.BodyEncoding = System.Text.Encoding.UTF8;
Aspose.Email.Mail.SmtpClient client;
client = new Aspose.Email.Mail.SmtpClient(settings.Host);
client.DeliveryMethod = Aspose.Email.Mail.SmtpDeliveryMethod.Network;
client.AuthenticationMethod = Aspose.Email.Mail.SmtpAuthentication.None;
client.Send(msg);
We couldn’t find a pattern when this happens. Other messages with “Umlauts” work. Also longer subjects work too. Any idea?
We are using Version 1.1.0.0 on a Windows 2008 R2 Server.
Cheers
Remy