邮件发送

发送邮件需:

/// <param name="smtpclient">伺服器(smtp.163.com)</param>
    /// <param name="fromname">发件人名称(自定义)</param>
    /// <param name="fromemail">发件人邮件地址 [email protected] </param>
    /// <param name="password">发件人邮箱密码</param>
    private static string fromname = ConfigurationManager.AppSettings["fromname"];
    private static string fromemail = ConfigurationManager.AppSettings["fromemail"];
    private static string password = ConfigurationManager.AppSettings["password"];
    private static string smtpclient = ConfigurationManager.AppSettings["smtpclient"];
    private static string reqPage = ConfigurationManager.AppSettings["reqPage"];

你可能感兴趣的:(职场,休闲,对的)