Esempio n. 1
0
        public string SendMessageOnAlreadyVerification(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.AlreadyVerification.Replace("#userName#", info.UserName).Replace("#siteName#", info.SiteName).Replace("#orderId#", info.OrderId);

            SendMessage(destination, info.SiteName + "核销成功", text);
            return(text);
        }
Esempio n. 2
0
        public string SendMessageOnMemberWithDrawFail(string destination, MessageWithDrawInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.MemberWithDrawFail.Replace("#userName#", info.UserName).Replace("#siteName#", info.SiteName);

            SendMessage(destination, info.SiteName + "提现失败", text);
            return(text);
        }
Esempio n. 3
0
        public string SendMessageOnFightGroupSuccess(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.FightGroupSuccess.Replace("#userName#", info.UserName).Replace("#siteName#", info.SiteName);

            SendMessage(destination, info.SiteName + "拼团成功", text);
            return(text);
        }
Esempio n. 4
0
        public string SendMessageOnSelfTakeOrderPay(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.SelfTakeOrderPay.Replace("#userName#", info.UserName).Replace("#siteName#", info.SiteName).Replace("#pickupCode#", info.PickupCode);

            SendMessage(destination, info.SiteName + "自提订单支付成功", text);
            return(text);
        }
Esempio n. 5
0
        public string SendMessageOnEditLoginPassWord(string destination, MessageUserInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.EditLoginPassWord.Replace("#userName#", info.UserName).Replace("#siteName#", info.SiteName);

            SendMessage(destination, info.SiteName + "登录密码修改成功", text);
            return(text);
        }
Esempio n. 6
0
        public string SendMessageOnOrderReturnFail(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.OrderReturnFail.Replace("#userName#", info.UserName).Replace("#siteName#", info.SiteName);

            SendMessage(destination, info.SiteName + "退货失败", text);
            return(text);
        }
Esempio n. 7
0
        /// <summary>
        /// 分销:申请审核拒绝
        /// </summary>
        /// <param name="destination"></param>
        /// <param name="userName"></param>
        public string SendMessageOnDistributorAuditFail(string destination, string userName, string siteName)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.DistributorAuditFail.Replace("#userName#", userName).Replace("#siteName#", siteName);

            SendMessage(destination, siteName + "销售员申请被拒绝", text);
            return(text);
        }
Esempio n. 8
0
        /// <summary>
        /// 分销:有已结算佣金时
        /// </summary>
        /// <param name="destination"></param>
        /// <param name="userName"></param>
        public string SendMessageOnDistributorCommissionSettled(string destination, string userName, string siteName)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.DistributorCommissionSettled.Replace("#userName#", userName).Replace("#siteName#", siteName);

            SendMessage(destination, siteName + "有新的佣金已结算", text);
            return(text);
        }
Esempio n. 9
0
        /// <summary>
        /// 虚拟商品购买成功
        /// </summary>
        /// <param name="destination"></param>
        /// <param name="info"></param>
        /// <returns></returns>
        public string SendMessageOnVirtualOrderPay(string destination, MessageVirtualOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.VirtualOrderPay.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName).Replace("#核销码#", info.VerificationCodes).Replace("#DueTime#", info.DueTime);

            SendMessage(destination, info.SiteName + "虚拟商品购买成功", text);
            return(text);
        }
Esempio n. 10
0
        /// <summary>
        /// 虚拟订单核销成功
        /// </summary>
        /// <param name="destination"></param>
        /// <param name="info"></param>
        /// <returns></returns>
        public string SendMessageOnVirtualOrderVerificationSuccess(string destination, MessageVirtualOrderVerificationInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.VirtualAlreadyVerification.Replace("#userName#", info.UserName).Replace("#核销码#", info.VerificationCodes).Replace("#VerificationTime#", info.VerificationTime).Replace("#siteName#", info.SiteName);

            SendMessage(destination, info.SiteName + "虚拟订单核销成功", text);
            return(text);
        }
Esempio n. 11
0
        //public string SendMessageOnRefundDeliver(string destination, MessageOrderInfo info)
        //{
        //    var config = EmailCore.GetMessageContentConfig();
        //    var text = config.RefundDeliver.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName).Replace("#RefundMoney#", info.RefundMoney.ToString("F2"));
        //    SendMessage(destination, info.SiteName + "订单(" + info.OrderId + ")售后发货提醒已处理", text);
        //    return text;
        //}

        public string SendMessageOnOrderShipping(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.OrderShipping.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName).Replace("#shippingCompany#", info.ShippingCompany).Replace("#shippingNumber#", info.ShippingNumber);

            SendMessage(destination, info.SiteName + "订单(" + info.OrderId + ")已发货", text);
            return(text);
        }
Esempio n. 12
0
        //public string SendMessageGetBrokerage(string destination, GetBrokerageInfo info)
        //{
        //    var config = EmailCore.GetMessageContentConfig();
        //    var text = config.GetBrokerage.Replace("#userName#", info.UserName).Replace("#siteName#", info.SiteName).Replace("#Money#", info.Money.ToString("F2")).Replace("#GetDate#", info.GetDate);
        //    SendMessage(destination, info.SiteName + "获得一笔佣金", text);
        //    return text;
        //}

        public string SendMessageOnOrderRefund(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.OrderRefundSuccess.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName).Replace("#RefundMoney#", info.RefundMoney.ToString("F2"));

            SendMessage(destination, info.SiteName + "订单(" + info.OrderId + ")退款已处理", text);
            return(text);
        }
Esempio n. 13
0
        public string SendMessageOnOrderPay(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.OrderPay.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName).Replace("#Total#", info.TotalMoney.ToString("F2"));

            SendMessage(destination, info.SiteName + "订单支付成功", text);
            return(text);
        }
Esempio n. 14
0
        //public string SendMessageOnFindPassWord(string destination, MessageUserInfo info)
        //{
        //    var config = EmailCore.GetMessageContentConfig();
        //    var text = config.FindPassWord.Replace("#userName#", info.UserName).Replace("#checkCode#", info.CheckCode).Replace("#siteName#", info.SiteName);
        //    SendMessage(destination, info.SiteName + "找回密码验证", text);
        //    return text;
        //}

        public string SendMessageOnOrderCreate(string destination, MessageOrderInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.OrderCreated.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName);

            SendMessage(destination, info.SiteName + "订单创建成功", text);
            return(text);
        }
Esempio n. 15
0
        public string SendMessageCode(string destination, MessageUserInfo info)
        {
            var config = EmailCore.GetMessageContentConfig();
            var text   = config.Bind.Replace("#userName#", info.UserName).Replace("#checkCode#", info.CheckCode).Replace("#siteName#", info.SiteName);

            SendMessage(destination, info.SiteName + "邮箱验证码", text);
            return(text);
        }