Пример #1
0
        public MassMailEditInfo GetMassMailDetailForEdit(long massmailID)
        {
            MassMailProvider objProvider = new MassMailProvider();
            MassMailEditInfo objInfo     = objProvider.GetMassMailDetailForEdit(massmailID);

            return(objInfo);
        }
Пример #2
0
        public MassMailSendInfo GetMailAndUserToSendMail(string SecheduleDate)
        {
            MassMailProvider objProvider = new MassMailProvider();
            MassMailSendInfo objInfo     = objProvider.GetMailAndUserToSendMail(SecheduleDate);
            SageFrameConfig  pagebase    = new SageFrameConfig();

            objInfo.MailFrom    = pagebase.GetSettingValueByIndividualKey(SageFrameSettingKeys.SuperUserEmail);
            objInfo.MessageBody = objInfo.MessageBody.Replace("##HostUrl##", GetCurrnetHostURL);
            return(objInfo);
        }
Пример #3
0
        public int AddUpdateMassMail(MassMailAddInfo objMassMail, string username)
        {
            MassMailProvider objProvider = new MassMailProvider();

            if (objMassMail.ScheduleType == 1)
            {
                objMassMail.ScheduledOn = DateTime.UtcNow.ToLocalTime().ToString();
            }

            int status = objProvider.AddUpdateMassMail(objMassMail, username);

            if (status > 0)
            {
                CallAPIForMail(objMassMail.ScheduledOn);
            }
            return(status);
        }
Пример #4
0
        public int UpdateStausOfFailMail(long MailID, string FailMailAddress)
        {
            MassMailProvider objProvider = new MassMailProvider();

            return(objProvider.UpdateStausOfFailMail(MailID, FailMailAddress));
        }
Пример #5
0
        public int DeleteMassMail(long massMailID, string username)
        {
            MassMailProvider objProvider = new MassMailProvider();

            return(objProvider.DeleteMassMail(massMailID, username));
        }
Пример #6
0
        public List <MassMailInfo> GetMassmailList(int offset, int limit, int filterTypeID, string title, int status)
        {
            MassMailProvider objProvider = new MassMailProvider();

            return(objProvider.GetMassMailList(offset, limit, filterTypeID, title, status));
        }
Пример #7
0
        public List <MassMailFilterTypeInfo> GetAllUsers(string username)
        {
            MassMailProvider objProvider = new MassMailProvider();

            return(objProvider.GetAllUsersForAutoComplete(username));
        }
Пример #8
0
        public List <MassMailFilterTypeInfo> GetFilterValueList(int filterTypeID)
        {
            MassMailProvider objProvider = new MassMailProvider();

            return(objProvider.GetFilterValueList(filterTypeID));
        }