1
public string GetInfo(string str)
{
string result = "";
int begin = m_HeaderLow.IndexOf(str);
if (begin < 0)
return result;
begin += str.Length;
int end = m_HeaderLow.Substring(begin).IndexOf("\r\n");
if (end >= 0)
result = m_Header.Substring(begin, end);
return result.Trim();
}其中m_Header是邮件头
用GetInfo("From:")
GetInfo("To:")
GetInfo("Subject:")
来取信息2:
点管理,给分