Beispiel #1
0
        public static bool FindPassword(Member member)
        {
            string Url = string.Format("http://www.justsay.cn/account/NewPassword/{0}", member.Password);
            string msg = SMTPManager.MailSending(member.Email, "JustSay[找回密码邮件]", string.Format(FindPasswordTemplete, member.ShowName, Url), "", 0);

            if (msg != "发送成功")
            {
                ToDoListBusiness.WriteLog(msg, "邮箱异常", "SMTPManager.MailSending", true);
                return(false);
            }
            return(true);
        }
Beispiel #2
0
        public static bool Email(Relation relation)
        {
            string Url = string.Format("http://www.justsay.cn/relation/Details/{0}", relation.ID);
            string msg = SMTPManager.MailSending(relation.ToEmail + ";" + relation.FromEmail, "JustSay[相互喜欢通知邮件]", string.Format(RelationEmailTemplete, relation.ToName, relation.FromName, Url), "", 0);

            if (msg != "发送成功")
            {
                ToDoListBusiness.WriteLog(msg, "邮箱异常", "SMTPManager.MailSending", true);
                return(false);
            }
            return(true);
        }
Beispiel #3
0
        public static bool Email(Confess confess)
        {
            string Url = string.Format("http://www.justsay.cn/confess/Details/{0}", confess.ID);
            string msg = SMTPManager.MailSending(confess.ToEmail, confess.ToName + "你被人表白了", string.Format(ConfessEmailTemplete, confess.ToName, confess.Content, Url), "", 0);

            if (msg != "发送成功")
            {
                ToDoListBusiness.WriteLog(msg, "邮箱异常", "SMTPManager.MailSending", true);
                return(false);
            }
            return(true);
        }
Beispiel #4
0
        public static bool SMS(Confess confess)
        {
            string    Url    = string.Format("http://www.justsay.cn/confess/Details/{0}", confess.ID);
            SmsStatus status = SMSHelper.SendMsg(confess.ToPhone, string.Format(ConfessSMSTemplete, confess.ToName, Url));

            if (!status.IsSuccess)
            {
                ToDoListBusiness.WriteLog(status.ErrorMessage, "短信异常", "SMSHelper.SendMsg", true);
                return(false);
            }
            return(status.IsSuccess);
            //  return true;
        }
Beispiel #5
0
        public static bool SMS(Relation relation)
        {
            string    Url     = string.Format("http://www.justsay.cn/relation/Details/{0}", relation.ID);
            SmsStatus status  = SMSHelper.SendMsg(relation.ToPhone, string.Format(RelationSMSTemplete, relation.FromName, relation.ToName, Url));
            SmsStatus status2 = SMSHelper.SendMsg(relation.FromPhone, string.Format(RelationSMSTemplete, relation.FromName, relation.ToName, Url));

            if (!(status.IsSuccess && status2.IsSuccess))
            {
                ToDoListBusiness.WriteLog(status.ErrorMessage, "短信异常", "SMSHelper.SendMsg", true);
                return(false);
            }

            return(status.IsSuccess && status2.IsSuccess);

            // return true;
        }