Пример #1
0
    //发送通知邮件
    protected void mailno()
    {
        MailAddress MessageFrom    = new MailAddress("*****@*****.**"); //发件人邮箱地址
        string      MessageTo      = "*****@*****.**";                     //收件人邮箱地址
        string      MessageSubject = "[丽军数码]有人发表了新留言!";                      //邮件主题
        string      MessageBody    = "<p>http://lijun0772.com/</p>";         //邮件内容

        WebHelp.Send(MessageFrom, MessageTo, MessageSubject, MessageBody);
    }
Пример #2
0
    //发送通知邮件
    protected void mailno()
    {
        MailAddress MessageFrom    = new MailAddress("*****@*****.**");                             //发件人邮箱地址
        string      MessageTo      = "*****@*****.**";                                                 //收件人邮箱地址
        string      MessageSubject = "[丽军数码]网站有新动态!";                                                    //邮件主题
        string      MessageBody    = "<a href=\"http://lijun0772.com/\" target=\"_blank\">点此查看</a></p>"; //邮件内容

        WebHelp.Send(MessageFrom, MessageTo, MessageSubject, MessageBody);
    }
Пример #3
0
    //发送验证邮件
    protected void mailv(string mailto, string usr)
    {
        MailAddress MessageFrom    = new MailAddress("*****@*****.**");                                                                                                                                   //发件人邮箱地址
        string      mailtoe        = Encryption.Decode(mailto);
        string      MessageTo      = mailtoe;                                                                                                                                                                  //收件人邮箱地址
        string      MessageSubject = "[丽军数码]验证邮箱地址";                                                                                                                                                           //邮件主题
        string      user           = Encryption.Auth(usr);                                                                                                                                                     //MD5
        string      mail           = Encryption.Auth(mailto);                                                                                                                                                  //MD5
        string      url            = "http://lijun0772.com/mailv.aspx?key=" + Encryption.Auth("黑我网站速度死!" + user) + mail;
        string      MessageBody    = "<p>" + Encryption.Decode(usr) + ",你好:<br/>请点击以下链接完成验证:<br/><a href=\"" + url + "\" target=\"_blank\">验证链接</a><br />如果你没有在本站评论或留言,请不要理会。</p><p align=\"right\">丽军数码</p>"; //邮件内容

        WebHelp.Send(MessageFrom, MessageTo, MessageSubject, MessageBody);
    }