C#实现邮件内容 MIME信息的编码/解码
C# 类库来实现MIME的编码和解码 MimeMessage mail new MimeMessage ; mail SetDate ; mail Setversion ; mail SetFrom "sender@local com" null ; mail SetTo "recipient1@server1 com Nick Name <recipient2@server1 com> "Nick Name " <recipient3@server2 com>" ; mail SetCC "recipient4@server4 com" null ; mail SetSubject "test mail" null ; mail SetFieldValue "X Priority" "3 Normal " null ; Initialize header mail SetContentType "multipart mixed" ; generate a boundary string automatically if the parameter is NULL mail SetBoundary null ; Add a text body part default Content Type is "text plain" default Content Transfer Encoding is "7bit" MimeBody mBody mail CreatePart ; mBody SetText "Hi there" ; set the content of the body part ">C# 类库来实现MIME的编码和解码 MimeMessage mail new MimeMessage ; mail SetDate ; mail Setversion ; mail SetFrom "sender@local com" null ; mail SetTo "recipient1@server1 com Nick Name <recipient2@server1 com> "Nick Name " <recipient3@server2 c [更多]