/// <summary> /// 为修改密码发送验证码请求 /// </summary> /// <param name="mobilePhone"></param> /// <param name="code"></param> /// <param name="smsContent"></param> /// <param name="errMsg"></param> /// <returns></returns> internal static bool SendSms4ModifyPassword(string mobilePhone, string code, out string smsContent, out string errMsg) { errMsg = string.Empty; const string smsTemplateId = "152258"; // //短信模板Id string[] smsData = new string[] { code }; //短信内容 smsContent = string.Format("【趣订货】验证码为{0},您正在修改登录密码,请确认是本人操作。", code); return(SmsLogBll.SendSms(mobilePhone, smsTemplateId, smsData, out errMsg)); }
internal static bool SendSms4RegisterVerificationCode(string mobilePhone, string code, out string smsContent, out string errMsg) { errMsg = string.Empty; const string smsTemplateId = "127529"; // //短信模板Id var timeout = Global.ApplicationParms.SmsVerificationCodeValidityPeriod.ToString(); string[] smsData = new string[] { code, timeout };//短信内容 smsContent = string.Format("【趣订货】您的注册验证码为:{0},请于{1}分钟内提交注册,如非本人操作,请忽略此短信。", code, timeout); return(SmsLogBll.SendSms(mobilePhone, smsTemplateId, smsData, out errMsg)); }
internal static bool SendSms4GetPassword(string mobilePhone, string superPassword, out string smsContent, out string errMsg) { errMsg = string.Empty; const string smsTemplateId = "127027"; // //短信模板Id string[] smsData = new string[] { superPassword }; //短信内容 //您当前手机号的登录密码为:{1},请妥善保存,如非本人操作,请忽略此短信。 smsContent = string.Format("【趣订货】您当前手机号的登录密码为:{0},请妥善保存,如非本人操作,请忽略此短信。", superPassword); return(SmsLogBll.SendSms(mobilePhone, smsTemplateId, smsData, out errMsg)); }