Exemple #1
0
        public EmailService(string MailSubject, string MailBody, string MailFileAttachmentFullPath, string MailSenderName, string MailSenderAddress, string MailReceiverName, string MailReceiverAddress, SS.Standard.Utilities.Email.MailType MailSendingType)
            : this()
        {
            this.MailSubject = MailSubject;
            this.MailBody    = MailBody;
            this.MailFileAttachmentFullPath = MailFileAttachmentFullPath;
            this.MailSendingType            = MailSendingType;

            this.SetMailSender(MailSenderAddress, MailSenderName);
            this.AddMailReceiver(MailReceiverAddress, MailReceiverName);
        }
Exemple #2
0
        private void ResetEmail()
        {
            email      = new Email();
            mailSender = new Email.MailSender();
            mailReceiver.ReceiverAddress = new System.Collections.ArrayList();
            mailReceiver.ReceiverName    = new System.Collections.ArrayList();

            MailSubject = "";
            MailBody    = "";
            MailFileAttachmentFullPath = "";
            MailSendingType            = SS.Standard.Utilities.Email.MailType.TEXT;
        }
Exemple #3
0
        public EmailService()
        {
            email      = new Email();
            mailSender = new Email.MailSender();
            mailReceiver.ReceiverAddress = new System.Collections.ArrayList();
            mailReceiver.ReceiverName    = new System.Collections.ArrayList();

            MailSMTPServer   = ConfigurationManager.AppSettings["MailSMTPServer"].ToString();
            MailSMTPPort     = int.Parse(ConfigurationManager.AppSettings["MailSMTPPort"].ToString());
            MailSMTPUserName = ConfigurationManager.AppSettings["MailSMTPUserName"].ToString();
            MailSMTPPassword = ConfigurationManager.AppSettings["MailSMTPPassword"].ToString();

            MailSubject = "";
            MailBody    = "";
            MailFileAttachmentFullPath = "";
            MailSendingType            = SS.Standard.Utilities.Email.MailType.TEXT;
        }