Exemplo n.º 1
0
        /// <summary>
        /// 訂單對帳通知
        /// </summary>
        /// <param name="no"></param>
        /// <param name="remit_day"></param>
        /// <returns></returns>
        public ResultInfo sendRemitMail(RemitEmail md)
        {
            ResultInfo r = new ResultInfo();

            try
            {
                #region 信件發送
                string  Body = getMailBody("../Email/Email_paymentreply", md, newContext);//套用信件版面
                Boolean mail;

                #region 收信人及寄信人
                string        sendMail = openLogic().getReceiveMails()[0];
                List <string> r_mails  = openLogic().getReceiveMails().ToList();
                #endregion

                mail = Mail_Send(sendMail,                                                                     //寄信人
                                 r_mails.ToArray(),                                                            //收信人
                                 string.Format(Resources.Res.MailTitle_Reply, Resources.Res.System_FrontName), //信件標題
                                 Body,                                                                         //信件內容
                                 true);                                                                        //是否為html格式
                if (mail == false)
                {                                                                                              //送信失敗
                    r.result  = true;
                    r.message = Resources.Res.Log_Err_SendMailFail;
                    return(r);
                }
                #endregion
            }
            catch (Exception ex)
            {
                r.result  = false;
                r.message = ex.Message;
            }
            return(r);
        }
Exemplo n.º 2
0
        public ActionResult Ship()
        {//出貨通知
            RemitEmail emd = new RemitEmail()
            {
                no  = "p123",
                day = DateTime.Now
            };

            return(View("Email_ship", emd));
        }
Exemplo n.º 3
0
        public ActionResult Reply()
        {//已付款通知
            RemitEmail emd = new RemitEmail()
            {
                no  = "p123",
                day = DateTime.Now
            };

            return(View("Email_paymentreply", emd));
        }