Beispiel #1
0
        public MassMailEditInfo GetMassMailDetailForEdit(long massmailID)
        {
            MassMailProvider objProvider = new MassMailProvider();
            MassMailEditInfo objInfo     = objProvider.GetMassMailDetailForEdit(massmailID);

            return(objInfo);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #4
0
        public int UpdateStausOfFailMail(long MailID, string FailMailAddress)
        {
            MassMailProvider objProvider = new MassMailProvider();

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

            return(objProvider.DeleteMassMail(massMailID, username));
        }
Beispiel #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));
        }
Beispiel #7
0
        public List <MassMailFilterTypeInfo> GetAllUsers(string username)
        {
            MassMailProvider objProvider = new MassMailProvider();

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

            return(objProvider.GetFilterValueList(filterTypeID));
        }