using System; using System.Data; using System.Web.UI; using System.Data.OracleClient; using DBUtility; using System.Text.RegularExpressions; using System.Net; using System.Net.Mail; using System.Xml; using System.Net.Mime; using System.Text; using Sy…
在用户环境发现一个现象,使用System.Net.Mail.SmtpClient发送邮件,当附件名包含中文且长度较长时,最终的邮件里附件名会乱掉,写个简单的测试程序: var mail = new MailMessage("from@test.com", "to@test.com"); mail.Subject = "测试邮件乱码"; var atta = new Attachment(@"C:\测试邮件中文出现乱码20150115.r…
利用thinkphp集成PHPMailer发送邮件时报错:Failed to connect to server: Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP 解决办法: 1.既然是ssl错误,习惯性的从php.ini中相应行打开支持,(extension=php_openssl.dll),服务器是windows主机,重启iis发现竟然还是不支持?…