TKMP ThunderbirdのHTMLの本文のパート |
- 日時: 2014/02/26 16:17
- 名前: Kelly
- 私、このポストを見たんだ。日本語を上手じゃなくてすいませんですだ。
http://uwa.potetihouse.com/bbs/patio.cgi?mode=view&no=410
reader.PartCollection[0].ContentType.SubType = "html" <−− 変わりたいです どうやってできますか?
if (bodycanread) { try { reader = new TKMP.Reader.MailReader(Mail.DataStream, false);
int count = reader.PartCollection.Count;
switch (count) { case 1: ppm_content = reader.PartCollection[1].MainText; break; default : ppm_content = reader.PartCollection[0].ContentType.SubType; ppm_content = System.Web.HttpUtility.HtmlEncode(reader.MainText).Replace(Environment.NewLine, "<br />").Replace("\n", "<br />").Replace("\r", "<br />"); break; } //ppm_content = System.Web.HttpUtility.HtmlEncode(reader.MainText).Replace(Environment.NewLine, "<br />").Replace("\n", "<br />").Replace("\r", "<br />"); orginalMainEmailContent = reader.MainText; } catch { } } 本当にありがとう
|
|
|