[问题] SmtpClient寄信,档名想设定成中文

楼主: magic704226 (梅姬?沒雞?傻傻分不清楚)   2015-02-10 17:38:59
MailMessage myMail = new MailMessage();
SmtpClient mySmtpServer = new SmtpClient("smtp.gmail.com");
myMail.From = new MailAddress("abc@abc.org", "Test Group");
myMail.To.Add("abc@abc.org");
myMail.Bcc.Add("abc@abc.org");
myMail.Subject = "Test";
string myFile3 = pdfPath;
Attachment myAttach3 = new Attachment(myFile3, MediaTypeNames.Application.Octet);
ContentDisposition disposition3 = myAttach3.ContentDisposition;
disposition3.FileName = "ticket.pdf"; <
作者: konkonchou (卡卡猫)   2015-02-10 20:03:00
4.5 以上, 4.0以下太长常会出问题
作者: CrazyAngel (无口系天然呆)   2015-02-10 21:49:00

Links booklink

Contact Us: admin [ a t ] ucptt.com