使用Gmail发送email时出现Must issue a STARTTLS command first错误!! 今天使用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的邮箱发送,则又出现错误。 请问有无两全其美的办法?