Beispiel #1
0
        /// <summary>
        /// 重置密码
        /// </summary>
        private void CreatePassword(bool isNew)
        {
            string oldPassword = this.密码;
            string oldSalt     = this.盐;

            try
            {
                PasswordGenerator pg = new PasswordGenerator();
                pg.ExcludeSymbols = true;
                string newPassword = pg.Generate();
                if (isNew)
                {
                    this.盐 = pg.Generate();
                }
                this.密码 = MyHelper.SHA1HashEncode(newPassword + this.盐);
                this.Save();

                jmail.Message mail = new jmail.Message();
                mail.FromName           = "专用算薪系统";
                mail.From               = "*****@*****.**";
                mail.MailDomain         = "hwagain.com";
                mail.MailServerUserName = "******";
                mail.MailServerPassWord = "******";
                mail.Encoding           = "base64";
                mail.Charset            = "gb2312";

                string address = this.邮箱地址;
                if (address != null)
                {
                    address = address.Trim();
                }
                if (string.IsNullOrEmpty(address))
                {
                    return;
                }
                if (address.IndexOf('@') == -1)
                {
                    address += "@hwagain.com";
                }
                mail.AddRecipient(address);
                mail.Subject = isNew ? "用户密码" : "重置密码成功";
                mail.Body    = String.Format("{0},您好,您的密码是:{1}", this.用户名, newPassword);
                mail.Send("192.168.79.18:26");
            }
            catch (Exception e)
            {
                if (!isNew)
                {
                    //恢复
                    this.盐  = oldSalt;
                    this.密码 = oldPassword;
                    this.Save();
                    MessageBox.Show("重置密码失败:" + e.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("初始化密码失败:" + e.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// 发送邮件
        /// </summary>
        public bool SendMail(string subject, string mailto, string body)
        {
            jmail.Message jmessage = new jmail.Message();

            try
            {
                jmessage.Silent   = true;
                jmessage.Charset  = "GB2312";
                jmessage.From     = mailModel.From;
                jmessage.FromName = mailModel.FromName;
                // jmessage.ReplyTo = "*****@*****.**";
                jmessage.Subject = subject;
                jmessage.AddRecipient(mailto, "", "");
                jmessage.Body = body;
                jmessage.MailServerUserName = mailModel.UserName;
                jmessage.MailServerPassWord = mailModel.PassWord;
                if (jmessage.Send(mailModel.MailServer, false))
                {
                    return(true);
                }
            }
            catch { return(false); }
            finally { jmessage.Close(); }

            return(false);
        }
Beispiel #3
0
    public static bool SendMails(string toMail, string emailtitle, string emailcontext)
    {
        try
        {
            jmail.Message Jmail = new jmail.Message();

            DateTime t    = DateTime.Now;
            string   et   = emailtitle;
            string   body = emailcontext;

            string ToEmail = toMail;
            //Silent属性:如果设置为true,JMail不会抛出例外错误. JMail. Send( () 会根据操作结果返回true或false
            Jmail.Silent = true;
            //Jmail创建的日志,前提loging属性设置为true
            Jmail.Logging = true;
            //字符集,缺省为"US-ASCII"
            Jmail.Charset = "GB2312";
            //信件的contentype. 缺省是"text/plain") : 字符串如果你以HTML格式发送邮件, 改为"text/html"即可。
            //Jmail.ContentType = "Multipart/Mixed";
            //添加收件人(若几个收件人就添加几行下面的代码)
            Jmail.AddRecipient(ToEmail, "", "");
            //Jmail.AddRecipientCC,Jmail.AddRecipientBCC (抄送,密送,用法同Jmail.AddRecipient)


            DataTable dt = BLL.CommonClass.CommonDataBLL.GetEmail();
            if (dt.Rows.Count == 0)
            {
                return(false);
            }
            string fromemail = BLL.QuickPay.SecretSecurity.Decrypt3Des24Bit(dt.Rows[0]["Email"].ToString(), new BLL.QuickPay.SecretSecurity().EmailKey);// "qc";;
            Jmail.From = fromemail;
            //发件人邮件用户名
            Jmail.MailServerUserName = BLL.QuickPay.SecretSecurity.Decrypt3Des24Bit(dt.Rows[0]["UserName"].ToString(), new BLL.QuickPay.SecretSecurity().EmailKey); // "qc";
            //发件人邮件密码
            Jmail.MailServerPassWord = BLL.QuickPay.SecretSecurity.Decrypt3Des24Bit(dt.Rows[0]["Password"].ToString(), new BLL.QuickPay.SecretSecurity().EmailKey); //"zx001";
            //设置邮件标题
            Jmail.Subject = et;
            //邮件添加附件,(多附件的话,可以再加一条Jmail.AddAttachment( "c:\\test.jpg",true,null);)就可以搞定了。

            ////[注]:加了附件,讲把上面的Jmail.ContentType="text/html";删掉。否则会在邮件里出现乱码。
            //Jmail.AddAttachment("c:\\img200610311000250.jpg", true, null);
            ////邮件内容,(若为纯文本就改为Jmail.Body )
            Jmail.Body = body;
            //Jmail发送的方法
            Jmail.Send(BLL.QuickPay.SecretSecurity.Decrypt3Des24Bit(dt.Rows[0]["EmailAddress"].ToString(), new BLL.QuickPay.SecretSecurity().EmailKey), false);
            Jmail.Close();
            return(true);
        }
        catch
        {
            return(false);
        }
    }
Beispiel #4
0
    /// <summary>
    /// 邮件发送
    /// </summary>
    /// <param name="Femail">发件人的邮箱</param>
    /// <param name="Fname">发件人的名称</param>
    /// <param name="Fpass">发件人的密码</param>
    /// <param name="email">收件人的邮箱</param>
    /// <param name="body">邮件内容</param>
    /// <param name="subject">邮件标题</param>
    /// <returns></returns>
    public static bool SendEmails(string Femail, string Fname, string Fpass, string email, string body, string subject)
    {
        jmail.Message jmailmessage = new jmail.Message();
        DateTime      t            = DateTime.Now;
        string        FromEmail    = Femail; //你的email地址
        string        ToEmail      = email;  //发送到对方的邮箱

        //Silent属性:如果设置为true,JMail不会抛出例外错误. JMail. Send( () 会根据操作结果返回true或false
        jmailmessage.Silent = true;
        //Jmail创建的日志,前提loging属性设置为true
        jmailmessage.Logging = false;
        //字符集,缺省为"US-ASCII"
        jmailmessage.Charset = "UTF-8";
        //添加收件人
        jmailmessage.AddRecipient(ToEmail, "", "");
        //设置自己的邮箱
        jmailmessage.From = FromEmail;
        //给对方看的昵称
        jmailmessage.FromName = Fname;
        //发件人邮件用户名
        jmailmessage.MailServerUserName = FromEmail;//FromEmail.Substring(0, FromEmail.IndexOf('@'));
        //发件人邮件密码
        jmailmessage.MailServerPassWord = Fpass;
        //设置邮件标题
        jmailmessage.Subject = subject;
        //设置邮件优先级
        jmailmessage.Priority = 1;//1--5  越小优先级越高
        //邮件内容
        //jmailmessage.Body = body;
        jmailmessage.HTMLBody = body;
        //Jmail发送的方法(mailServer:pop3.163.com/smtp.163.com)
        //bool temp = jmailmessage.Send("smtp.163.com", false); //使用163邮箱做为发件人
        bool temp = jmailmessage.Send("smtp.exmail.qq.com", false);//使用QQ邮箱做为发件人

        jmailmessage.ClearAttachments();
        jmailmessage.ClearRecipients();
        jmailmessage.Close();
        if (temp)
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }
Beispiel #5
0
    public void SendEmail(string name, string password, string email, string type)
    {
        string code = "";
        switch (type)
        {
            case "GB":
                code = "gb2312";
                break;
            case "UTF":
                code = "utf-8";
                break;
            default:
                code = "gb2312";
                break;
        }
        jmail.Message JMail = new jmail.Message();
        JMail.Charset = code;
        JMail.Logging = true;
        JMail.ContentType = "text/html";
        JMail.AddHeader("Originating-IP", Request.ServerVariables["REMOTE_ADDR"]);
        JMail.MailServerUserName = "******";
        JMail.MailServerPassWord = "******";
        JMail.From = "*****@*****.**";
        JMail.FromName = "环球运费网";
        JMail.Subject = "您已成功注册环球运费网会员";

        JMail.Body = "<body> ";
        JMail.Body += "<table border=0 cellspacing=3 cellpadding=0 width=540 bgcolor=#F0690F align=center> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td bgcolor=#ffffff> ";
        JMail.Body += "<table width=90% height=80 border=0 align=center cellpadding=0 cellspacing=0> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td> ";
        JMail.Body += "<a href=http://www.100allin.com target=_blank><img border=0 src=http://www.100allin.com/images/logo.gif width=182 height=72 /></a> ";
        JMail.Body += "<strong> ";
        JMail.Body += "<font size=3 color=#29728D>专业</font><font size=3 color=#FF6600>运价</font><font size=3 color=#29728D>搜索查询和发布</font> ";
        JMail.Body += "</strong> ";
        JMail.Body += "</td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody> ";
        JMail.Body += "</table> ";
        JMail.Body += "<table border=0 cellspacing=0 cellpadding=13 width=90% bgcolor=#fffdcf align=center> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td><font size=2><strong>尊敬的用户,您好!</strong> ";
        JMail.Body += "<p>感谢您注册环球运费网,以下是您注册的详细信息:</p></font> ";
        JMail.Body += "<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=#fffdcf align=center> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td width=51%><font size=2><p>您的用户名是:<strong>" + name + "</strong> </p> ";
        JMail.Body += "<p>您的密码是:<strong>" + password + "</strong></p></td> ";
        JMail.Body += "<td width=49%><a href=http://www.100allin.com></a></font></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody> ";
        JMail.Body += "</table></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody> ";
        JMail.Body += "</table> ";
        JMail.Body += "<br /> ";
        JMail.Body += "<table width=90% height=25 border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#F0690F> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td width=13>&nbsp;</td> ";
        JMail.Body += "<td width=468><font size=2>注册成功后,您可以享受环球运费网提供的多项优质免费服务:</font></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody> ";
        JMail.Body += "</table> ";
        JMail.Body += "<table border=0 cellspacing=1 cellpadding=5 width=90% align=center> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td width=50 height=60 bgcolor=#e9e9e9><img src=http://www.100allin.com/images/email/up.gif width=48 height=48 /></td> ";
        JMail.Body += "<td width=408 bgcolor=#e9e9e9><font size=2><strong>免费 发布海空运价信息</strong><br /> ";
        JMail.Body += "发布运价完全免费,批量上传功能让你更快更多的发布运价</font></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td height=60 bgcolor=#e9e9e9><img src=http://www.100allin.com/images/email/search.gif width=48 height=48 /></td> ";
        JMail.Body += "<td bgcolor=#e9e9e9><font size=2><strong>免费 搜索发布货盘信息</strong><br /> ";
        JMail.Body += "几千外贸客户资源,更多更好货盘等你来拿</font></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td height=60 bgcolor=#e9e9e9><img src=http://www.100allin.com/images/email/chat.gif width=48 height=48 /></td> ";
        JMail.Body += "<td bgcolor=#e9e9e9><font size=2><strong>即时 与您的商友沟通</strong><br /> ";
        JMail.Body += "聊天工具免下载免安装,随时随地与用户进行沟通</font></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody> ";
        JMail.Body += "</table> ";
        JMail.Body += "<br /> ";
        JMail.Body += "<br /> ";
        JMail.Body += "<table border=0 cellspacing=0 cellpadding=0 width=90% align=center> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td><font size=2><p>您在使用过程中,如有任何问题或建议,请随时联系环球运费网客户服务人员,我们将热忱为您服务。 <br /> ";
        JMail.Body += "</p></font></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody> ";
        JMail.Body += "</table> ";
        JMail.Body += "<br /> ";
        JMail.Body += "<table border=0 cellspacing=0 cellpadding=0 width=90% align=center> ";
        JMail.Body += "<tbody> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td align=center><font size=2>【温馨提示】<br /> ";
        JMail.Body += "<font size=2 color=#CC0000><strong>为保证您正常接收邮件,环球运费网建议您将此邮件地址加入到地址簿中。</strong></font><br /> ";
        JMail.Body += "</div></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody> ";
        JMail.Body += "</table></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "<tr> ";
        JMail.Body += "<td bgcolor=#FF6600 height=50 align=center><font size=2>环球运费网(<a href=http://www.100allin.com>http://www.100allin.com</a>)<br /> ";
        JMail.Body += "客服电话/传真:021-53853033/3022 邮箱:[email protected]</font></td> ";
        JMail.Body += "</tr> ";
        JMail.Body += "</tbody>  ";
        JMail.Body += "</table>  ";
        JMail.Body += "</body> ";
        JMail.AddRecipient(email, "接收者", "123");
        JMail.Priority = 3;
        JMail.Send("mail.100allin.com", false);
        JMail.Close();
        JMail = null;
        Response.Redirect("regnormal.aspx");
    }
Beispiel #6
0
    public void SendEmail(string userid, string name, string password, string email, string type)
    {
        string code = "";
        switch (type)
        {
            case "GB":
                code = "gb2312";
                break;
            case "UTF":
                code = "utf-8";
                break;
            default:
                code = "gb2312";
                break;
        }
        jmail.Message JMail = new jmail.Message();
        JMail.Charset = code;
        JMail.Logging = true;
        JMail.ContentType = "text/html";
        JMail.AddHeader("Originating-IP", Request.ServerVariables["REMOTE_ADDR"]);
        JMail.MailServerUserName = "******";
        JMail.MailServerPassWord = "******";
        JMail.From = "*****@*****.**";
        JMail.FromName = "环球运费网";
        JMail.Subject = "您已成功注册环球运费网会员";

        //JMail.Body = "<body> ";
        //JMail.Body += "<table border=0 cellspacing=3 cellpadding=0 width=540 bgcolor=#F0690F align=center> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td bgcolor=#ffffff> ";
        //JMail.Body += "<table width=90% height=80 border=0 align=center cellpadding=0 cellspacing=0> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td> ";
        //JMail.Body += "<a href=http://www.100allin.com target=_blank><img border=0 src=http://www.100allin.com/images/logo.gif width=182 height=72 /></a> ";
        //JMail.Body += "<strong> ";
        //JMail.Body += "<font size=3 color=#29728D>专业</font><font size=3 color=#FF6600>运价</font><font size=3 color=#29728D>搜索查询和发布</font> ";
        //JMail.Body += "</strong> ";
        //JMail.Body += "</td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody> ";
        //JMail.Body += "</table> ";
        //JMail.Body += "<table border=0 cellspacing=0 cellpadding=13 width=90% bgcolor=#fffdcf align=center> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td><font size=2><strong>尊敬的用户,您好!</strong> ";
        //JMail.Body += "<p>感谢您注册环球运费网,以下是您注册的详细信息:</p></font> ";
        //JMail.Body += "<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=#fffdcf align=center> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td width=51%><font size=2><p>您的用户名是:<strong>" + name + "</strong> </p> ";
        //JMail.Body += "<p>您的密码是:<strong>" + password + "</strong></p></td> ";
        //JMail.Body += "<td width=49%><a href=http://www.100allin.com></a></font></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody> ";
        //JMail.Body += "</table></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody> ";
        //JMail.Body += "</table> ";
        //JMail.Body += "<br /> ";
        //JMail.Body += "<table width=90% height=25 border=0 align=center cellpadding=0 cellspacing=0 bgcolor=#F0690F> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td width=13>&nbsp;</td> ";
        //JMail.Body += "<td width=468><font size=2>注册成功后,您可以享受环球运费网提供的多项优质免费服务:</font></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody> ";
        //JMail.Body += "</table> ";
        //JMail.Body += "<table border=0 cellspacing=1 cellpadding=5 width=90% align=center> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td width=50 height=60 bgcolor=#e9e9e9><img src=http://www.100allin.com/images/email/up.gif width=48 height=48 /></td> ";
        //JMail.Body += "<td width=408 bgcolor=#e9e9e9><font size=2><strong>免费 发布海空运价信息</strong><br /> ";
        //JMail.Body += "发布运价完全免费,批量上传功能让你更快更多的发布运价</font></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td height=60 bgcolor=#e9e9e9><img src=http://www.100allin.com/images/email/search.gif width=48 height=48 /></td> ";
        //JMail.Body += "<td bgcolor=#e9e9e9><font size=2><strong>免费 搜索发布货盘信息</strong><br /> ";
        //JMail.Body += "几千外贸客户资源,更多更好货盘等你来拿</font></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td height=60 bgcolor=#e9e9e9><img src=http://www.100allin.com/images/email/chat.gif width=48 height=48 /></td> ";
        //JMail.Body += "<td bgcolor=#e9e9e9><font size=2><strong>即时 与您的商友沟通</strong><br /> ";
        //JMail.Body += "聊天工具免下载免安装,随时随地与用户进行沟通</font></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody> ";
        //JMail.Body += "</table> ";
        //JMail.Body += "<br /> ";
        //JMail.Body += "<br /> ";
        //JMail.Body += "<table border=0 cellspacing=0 cellpadding=0 width=90% align=center> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td><font size=2><p>您在使用过程中,如有任何问题或建议,请随时联系环球运费网客户服务人员,我们将热忱为您服务。 <br /> ";
        //JMail.Body += "</p></font></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody> ";
        //JMail.Body += "</table> ";
        //JMail.Body += "<br /> ";
        //JMail.Body += "<table border=0 cellspacing=0 cellpadding=0 width=90% align=center> ";
        //JMail.Body += "<tbody> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td align=center><font size=2>【温馨提示】<br /> ";
        //JMail.Body += "<font size=2 color=#CC0000><strong>为保证您正常接收邮件,环球运费网建议您将此邮件地址加入到地址簿中。</strong></font><br /> ";
        //JMail.Body += "</div></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody> ";
        //JMail.Body += "</table></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "<tr> ";
        //JMail.Body += "<td bgcolor=#FF6600 height=50 align=center><font size=2>环球运费网(<a href=http://www.100allin.com>http://www.100allin.com</a>)<br /> ";
        //JMail.Body += "客服电话/传真:400-888-9256/021-63509508 邮箱:[email protected]</font></td> ";
        //JMail.Body += "</tr> ";
        //JMail.Body += "</tbody>  ";
        //JMail.Body += "</table>  ";
        //JMail.Body += "</body> ";

        JMail.Body += "<table width=660 border=0 align=center cellpadding=0 cellspacing=0>";
        JMail.Body += "<tr><td height=16 colspan=3 align=left valign=top bgcolor=#C91E2E>&nbsp;</td></tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td width=16 height=0 bgcolor=#c91e2e></td>";
        JMail.Body += "<td align=center bgcolor=#c91e2e>";
        JMail.Body += "<table width=628 border=0 cellspacing=0>";
        JMail.Body += "<tr><td align=left><a href=http://www.100allin.com/><img src=http://img01.100allin.com/images/mail/logo.gif width=195 height=64 border=0 /></a></td></tr>";
        JMail.Body += "</table>";
        JMail.Body += "<table width=628 border=0 cellspacing=0 cellpadding=0>";
        JMail.Body += "<tr><td colspan=4 bgcolor=#FFF2F2>&nbsp;</td></tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td width=16 rowspan=6 bgcolor=#FFF2F2>&nbsp;</td>";
        JMail.Body += "<td width=17 height=40 align=left bgcolor=#FFF2F2><strong><img src=http://img01.100allin.com/images/mail/ico1.gif width=12 height=15 /></strong></td>";
        JMail.Body += "<td width=579 align=left bgcolor=#FFF2F2><font color=#520D14 size=2><strong> 尊敬的用户您好</strong>:</font></td>";
        JMail.Body += "<td width=16 rowspan=6 bgcolor=#FFF2F2>&nbsp;</td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr><td height=26 colspan=2 align=left bgcolor=#FFF2F2><font color=#520D14 size=2>感谢您注册环球运费网,以下是您注册的详细信息</font></td></tr>";
        JMail.Body += "<tr><td height=26 colspan=2 align=left bgcolor=#FFF2F2><font color=#520D14 size=2>您的用户名是 : " + name + "</font></td></tr>";
        JMail.Body += "<tr><td height=26 colspan=2 align=left bgcolor=#FFF2F2><font color=#520D14 size=2>您的密码是 : " + password + "</font></td></tr>";
        JMail.Body += "<tr><td colspan=2 align=left bgcolor=#FFF2F2>&nbsp;</td></tr>";
        JMail.Body += "<tr><td colspan=2 bgcolor=#FFF2F2>";
        JMail.Body += "<table width=596 border=0 cellpadding=0 cellspacing=0>";
        JMail.Body += "<tr>";
        JMail.Body += "<td height=48 colspan=2 align=center bgcolor=#F5C9C9><strong><img src=http://img01.100allin.com/images/mail/13.gif width=14 height=16 /></strong></td>";
        JMail.Body += "<td width=551 align=left bgcolor=#F5C9C9><font color=#520D14 size=2><strong> 新注册会员有惊喜</strong></font>:</td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td width=44 rowspan=3 bgcolor=#F5C9C9>&nbsp;</td>";
        JMail.Body += "<td height=26 colspan=2 align=left bgcolor=#F5C9C9><font color=#520D14 size=2>如果您是货代公司,在您注册成功后,只要一次性发布有效运价达到100条或以上,就可免费获得环球运费网站内短信群发推广一次</font></td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr><td height=26 colspan=2 align=left bgcolor=#F5C9C9><font color=#520D14 size=2>发送对象:网站直客和同行会员500位</font></td></tr>";
        JMail.Body += "<tr><td height=26 colspan=2 align=left bgcolor=#F5C9C9><a href=http://www.100allin.com/topic/reg20100926/index.aspx?uid=" + setkey(userid) + "><font color=#FF0000 size=2>点此申请推广名额</font></a></td></tr>";
        JMail.Body += "<tr><td colspan=3 bgcolor=#F5C9C9>&nbsp;</td></tr>";
        JMail.Body += "</table>";
        JMail.Body += "</td></tr>";
        JMail.Body += "<tr><td colspan=4 bgcolor=#FFF2F2>&nbsp;</td></tr>";
        JMail.Body += "</table>";
        JMail.Body += "<br />";
        JMail.Body += "<table width=628 border=0 cellspacing=0 cellpadding=0>";
        JMail.Body += "<tr><td colspan=4 bgcolor=#FFF2F2>&nbsp;</td></tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td width=16 rowspan=5 bgcolor=#FFF2F2>&nbsp;</td>";
        JMail.Body += "<td width=20 height=40 align=left bgcolor=#FFF2F2><img src=http://img01.100allin.com/images/mail/ico2.gif width=16 height=16 /></td>";
        JMail.Body += "<td width=574 align=left bgcolor=#FFF2F2><font color=#520D14 size=2><strong> 您现在在环球运费网可享受如下服务</strong>:</span></td>";
        JMail.Body += "<td width=17 rowspan=5 bgcolor=#FFF2F2>&nbsp;</td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td height=26 align=center bgcolor=#FFF2F2><img src=http://img01.100allin.com/images/mail/ico3.gif width=7 height=13 /></td>";
        JMail.Body += "<td align=left bgcolor=#FFF2F2><font color=#520D14 size=2>免费查看运价及发布者联系方式</font></td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td height=26 align=center bgcolor=#FFF2F2><img src=http://img01.100allin.com/images/mail/ico3.gif width=7 height=13 /></td>";
        JMail.Body += "<td align=left bgcolor=#FFF2F2><font color=#520D14 size=2>免费发布运价信息</font></td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td height=26 align=center bgcolor=#FFF2F2><img src=http://img01.100allin.com/images/mail/ico3.gif width=7 height=13 /></td>";
        JMail.Body += "<td align=left bgcolor=#FFF2F2><font color=#520D14 size=2>论坛发贴</font></td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr>";
        JMail.Body += "<td height=26 align=center bgcolor=#FFF2F2><img src=http://img01.100allin.com/images/mail/ico3.gif width=7 height=13 /></td>";
        JMail.Body += "<td align=left bgcolor=#FFF2F2><font color=#520D14 size=2>与网站会员站内交流</font></td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr><td colspan=4 bgcolor=#FFF2F2>&nbsp;</td></tr>";
        JMail.Body += "</table>";
        JMail.Body += "<br /><font color=#FFFFFF size=2>环球运费网客服中心,随时为您提供热情的服务<br />www.100allin.com 电话:400-888-9256 邮箱:[email protected]</font><br /></td>";
        JMail.Body += "<td width=16 bgcolor=#c91e2e></td>";
        JMail.Body += "</tr>";
        JMail.Body += "<tr><td height=16 colspan=3 align=left valign=bottom bgcolor=#C91E2E>&nbsp;</td></tr>";
        JMail.Body += "</table>";
        JMail.Body += "</body>";

        JMail.AddRecipient(email, name, "");
        JMail.Priority = 3;
        JMail.Send("smtp.exmail.qq.com", false);
        JMail.Close();
        JMail = null;
        Response.Redirect("regnormal.aspx");
    }