//发送成功信件 public void SendPassMail(string url, string username, string realname, string mail) { Tz888.BLL.AutoSendMsg msg = new Tz888.BLL.AutoSendMsg(); string content; content = msg.DownUrl(url, "GB2312"); content = content.Replace("$LOGINNAME$", username); content = content.Replace("$NICKNAME$", realname); msg.SendEmail(mail, "验证成功,欢迎加入资源联盟", content); }
//发送找回用户名信件 public void SendSucceedMail(string url, string name, string mail, string absimgurl) { Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL(); Tz888.BLL.Register.LoginInfoBLL log = new LoginInfoBLL(); Tz888.BLL.AutoSendMsg msg = new Tz888.BLL.AutoSendMsg(); string content; content = msg.DownUrl(url, "GB2312"); content = content.Replace("$LOGINNAME$", name); content = content.Replace("../..", absimgurl); content = content.Replace("$LOGINURL$", absimgurl); msg.SendEmail(mail, "成功找回用户名,欢迎登陆TopFo", content); }
//发送重设密码邮件 public void SendResetMail(string url, string name, string pwd, string mail, string validurl, string absimgurl) { Tz888.BLL.AutoSendMsg msg = new Tz888.BLL.AutoSendMsg(); Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL(); string content; content = msg.DownUrl(url, "GB2312"); content = content.Replace("$LOGINNAME$", name); content = content.Replace("$PassWord$", pwd); content = content.Replace("../..", absimgurl); content = content.Replace("$CONFIRMURL$", validurl); msg.SendEmail(mail, "重设密码以确保您TopFo账号安全", content); }
public void SendPassMail(string LoginName, string Title, string HtmlFile, string TmpPath) { string EmailTmp = ""; //邮件内容模版 string NickName = ""; //会员昵称 string Email = ""; int AuditCount = 0; int PassCount = 0; int NoPassCount = 0; int OverdueCount = 0; string AuditUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_Audit.aspx"; string PassUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_Pass.aspx"; string NoPassUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_NoPass.aspx"; string OverdueUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_Overdue.aspx"; string InfoUrl = "http://www.topfo.com" + @"/" + HtmlFile; Tz888.BLL.Register.MemberInfoBLL member = new Tz888.BLL.Register.MemberInfoBLL(); Tz888.BLL.AutoSendMsg msg = new Tz888.BLL.AutoSendMsg(); Tz888.BLL.Info.MainInfoBLL bll = new Tz888.BLL.Info.MainInfoBLL(); AuditCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.Auditing, LoginName, "0"); PassCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.Pass, LoginName, "0"); NoPassCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.NoPass, LoginName, "0"); OverdueCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.Overdue, LoginName, "0"); NickName = member.getNickName(LoginName); Email = member.GetEmail(LoginName); EmailTmp = msg.DownUrl(TmpPath, "GB2312"); EmailTmp = EmailTmp.Replace("#@Tmp_UserName#", NickName); EmailTmp = EmailTmp.Replace("#@Tmp_Title#", Title); EmailTmp = EmailTmp.Replace("#@Tmp_HtmlFileUrl#", InfoUrl); EmailTmp = EmailTmp.Replace("#@Tmp_AuditUrl#", AuditUrl); EmailTmp = EmailTmp.Replace("#@Tmp_PassUrl#", PassUrl); EmailTmp = EmailTmp.Replace("#@Tmp_NoPassUrl#", NoPassUrl); EmailTmp = EmailTmp.Replace("#@Tmp_OverdueUrl#", OverdueUrl); EmailTmp = EmailTmp.Replace("#@Tmp_AuditCount#", AuditCount.ToString()); EmailTmp = EmailTmp.Replace("#@Tmp_PassCount#", PassCount.ToString()); EmailTmp = EmailTmp.Replace("#@Tmp_NoPassCount#", NoPassCount.ToString()); EmailTmp = EmailTmp.Replace("#@Tmp_OverdueCount#", OverdueCount.ToString()); msg.SendEmail(Email, "您发布的资源已通过审核!", EmailTmp); }
//发送确认邮件 public void SendMail(string url, string name, string mail, string validurl, string absimgurl) { Tz888.BLL.AutoSendMsg msg = new Tz888.BLL.AutoSendMsg(); Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL(); string nickName = member.getNickName(name); string content; content = msg.DownUrl(url, "GB2312"); content = content.Replace("$NICKNAME$", nickName); content = content.Replace("$LOGNAME$", name); content = content.Replace("$EMAIL$", mail); content = content.Replace("$CONFIRMURL$", validurl); content = content.Replace("../..", absimgurl); msg.SendEmail(mail, "完成验证即可享受TopFo的特色服务", content); }
//发送成功信件 public void SendSuccessMail(string url, string name, string mail, string absimgurl) { Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL(); Tz888.BLL.Register.LoginInfoBLL log = new LoginInfoBLL(); Tz888.BLL.AutoSendMsg msg = new Tz888.BLL.AutoSendMsg(); string nickName = member.getNickName(name); string managerType = log.GetManagerType(name); string content; content = msg.DownUrl(url, "GB2312"); content = content.Replace("$LOGINNAME$", name); content = content.Replace("$NICKNAME$", nickName); content = content.Replace("$MANAGERTYPE$", managerType); content = content.Replace("c" + managerType.Trim(), ""); content = content.Replace("../..", absimgurl); content = content.Replace("$LOGINURL$", absimgurl); msg.SendEmail(mail, "验证成功,欢迎加入拓富大家庭", content); }
public void SendNoPassEmail(long InfoID, string LoginName, string Title, int FeedbackStatus, string FeedBackNote, string InfoType, string TmpPath) { string UpdateModel = "<div class=\"dcxg\"><a class=\"ablue03\" href=\"{0}\" target=\"_blank\">点此进行修改>></a></div>"; string EmailTmp = ""; //邮件内容模版 string NickName = ""; //会员昵称 string Email = ""; string Update = ""; string Status = ""; string InfoUrl = ""; int AuditCount = 0; int PassCount = 0; int NoPassCount = 0; int OverdueCount = 0; string AuditUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_Audit.aspx"; string PassUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_Pass.aspx"; string NoPassUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_NoPass.aspx"; string OverdueUrl = "http://member.topfo.com" + @"/Manage/ResourceManage_Overdue.aspx"; Tz888.BLL.Register.MemberInfoBLL member = new Tz888.BLL.Register.MemberInfoBLL(); Tz888.BLL.AutoSendMsg msg = new Tz888.BLL.AutoSendMsg(); Tz888.BLL.Info.MainInfoBLL bll = new Tz888.BLL.Info.MainInfoBLL(); AuditCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.Auditing, LoginName, "0"); PassCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.Pass, LoginName, "0"); NoPassCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.NoPass, LoginName, "0"); OverdueCount = bll.GetCount(Tz888.BLL.Common.AuditStatus.Overdue, LoginName, "0"); NickName = member.getNickName(LoginName); Email = member.GetEmail(LoginName); EmailTmp = msg.DownUrl(TmpPath, "GB2312"); if (FeedbackStatus == 0) { switch (InfoType.ToLower()) { case "capital": InfoUrl = "http://member.topfo.com/Manage/ModifyCapital.aspx?id=" + InfoID.ToString() + "&type=" + InfoType; Update = string.Format(UpdateModel, InfoUrl); break; case "merchant": InfoUrl = "http://member.topfo.com/Manage/ModifyMerchant.aspx?id=" + InfoID.ToString() + "&type=" + InfoType; Update = string.Format(UpdateModel, InfoUrl); break; case "project": InfoUrl = "http://member.topfo.com/Manage/ModifyProject.aspx?id=" + InfoID.ToString() + "&type=" + InfoType; Update = string.Format(UpdateModel, InfoUrl); break; default: Update = ""; break; } Status = "可修改"; } else { Update = ""; Status = "即将删除"; } EmailTmp = EmailTmp.Replace("#@Tmp_UserName#", NickName); EmailTmp = EmailTmp.Replace("#@Tmp_Title#", Title); EmailTmp = EmailTmp.Replace("#@Tmp_Status#", Status); EmailTmp = EmailTmp.Replace("#@Tmp_Remark#", FeedBackNote); EmailTmp = EmailTmp.Replace("#@Tmp_IsUpdate#", Update); EmailTmp = EmailTmp.Replace("#@Tmp_AuditUrl#", AuditUrl); EmailTmp = EmailTmp.Replace("#@Tmp_PassUrl#", PassUrl); EmailTmp = EmailTmp.Replace("#@Tmp_NoPassUrl#", NoPassUrl); EmailTmp = EmailTmp.Replace("#@Tmp_OverdueUrl#", OverdueUrl); EmailTmp = EmailTmp.Replace("#@Tmp_AuditCount#", AuditCount.ToString()); EmailTmp = EmailTmp.Replace("#@Tmp_PassCount#", PassCount.ToString()); EmailTmp = EmailTmp.Replace("#@Tmp_NoPassCount#", NoPassCount.ToString()); EmailTmp = EmailTmp.Replace("#@Tmp_OverdueCount#", OverdueCount.ToString()); msg.SendEmail(Email, "您发布的资源未通过审核!", EmailTmp); }