mailsystem.net

C# Imap Sort command with special characters

半腔热情 提交于 2019-12-25 17:21:16
问题 I'm working on a problem with imap sort extention: My command is the following: var query = "icône"; //byte[] bytes = Encoding.Default.GetBytes(query); //query = Encoding.UTF8.GetString(bytes); var command = "SORT (REVERSE ARRIVAL) UTF-8 " + "{" + query.Length + "}"; var imapAnswerString = client.Command(command); imapAnswerString = client.Command(query); I get the following error: BAD Error in IMAP command SORT: 8bit data in atom I found this: C# Imap search command with special characters

MailSystem.NET subject encoding

梦想与她 提交于 2019-12-05 00:47:35
问题 I'm currently using MailSystem.NET SMTPClient to send email, the email content contains Chinese character in both Subject and Body. By the following code, I'm able to set the Email's body to be Encoded correctly, but Subject is still not Encoded and appeared as ???? in Received Email. ActiveUp.Net.Mail.Message message = new ActiveUp.Net.Mail.Message(); .... message.Charset = "utf-8"; SmtpClient.Send(message, serverName); Could anyone familiar with MailSystem.Net kindly tell me how to set the

MailSystem.NET subject encoding

余生颓废 提交于 2019-12-03 15:36:13
I'm currently using MailSystem.NET SMTPClient to send email, the email content contains Chinese character in both Subject and Body. By the following code, I'm able to set the Email's body to be Encoded correctly, but Subject is still not Encoded and appeared as ???? in Received Email. ActiveUp.Net.Mail.Message message = new ActiveUp.Net.Mail.Message(); .... message.Charset = "utf-8"; SmtpClient.Send(message, serverName); Could anyone familiar with MailSystem.Net kindly tell me how to set the subject as encoded in utf-8 as well? Thanks. Tomq I had a similar problem with Polish chars in my email