Esempio n. 1
0
    /// <summary>
    /// 邮件发送
    /// </summary>
    /// <param name="resEmail">接收人邮件地址</param>
    /// <param name="Subject">主题</param>
    /// <param name="Body">内容</param>
    /// <returns></returns>
    public static string MailSend(string resEmail, string Subject, string Body)
    {
        return(Sys.Common.MailSend.Single(resEmail, Subject, Body,
                                          WebConfig.GetString("EmailServer"),
                                          WebConfig.GetString("EmailAccount"),
                                          WebConfig.GetString("EmailPassword"),
                                          WebConfig.GetString("EmailSender"),
                                          WebConfig.GetInt("EmailPort", 25)));

        //  return "";
    }