常用搜索: 北大青鸟系统分析师数据库系统工程师网络工程师软件设计师软件评测师信息安全工程师程序员网络管理员短信猫OracleSQL ServerDB2AndroidWindows操作系统
今天使用Gmail发送email时出现Must issue a STARTTLS command first错误,
于是加了一句:
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "true");  (mm为System.Web.Mail.MailMessage实例)。

但加了这句后,如果不用Gmail的邮箱发送,如用163的邮箱发送,则又出现错误。

请问有无两全其美的办法?
posted on 2007-08-28 18:01  Bankey  阅读(8565)  评论(7编辑  收藏  举报
常用插件:Html Agility PackjchardetThickBoxFCKeditoreWebEditorAjaxProAspNetPager