我在本题测试没错,上传到服务器时出现如下错误!
SendUsing”配置值无效。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Runtime.InteropServices.COMException: “SendUsing”配置值无效。 
我程序如下:
MailMessage mymail = new MailMessage();
mymail.From = "[email protected]";
mymail.To = "[email protected]";
mymail.Subject = companytopic.Text.Trim();
string sBodyFormat = "HTML";
switch (sBodyFormat.ToUpper())
{
case "HTML":
mymail.BodyFormat = MailFormat.Html;
break;
default:
mymail.BodyFormat = MailFormat.Text;
break;
}

    mymail.Body="body"; 
SmtpMail.Send(mymail);
那位大哥能给看一下,不胜感激