Esempio n. 1
0
        private void SendEmail(string Password, string User)
        {
            MParameter        parameterBE  = new MParameter();
            List <MParameter> parameterBEs = new List <MParameter>();

            int Val = 0;

            parameterBE.Code = "MAIL_PASSUSER";
            parameterBEs     = BParameter.List(parameterBE, ref Val);

            _MAwsEmail.Subject = "UNITLIFE - User generation";
            _MAwsEmail.Message = parameterBEs[0].Valor1.Replace("[Password]", UEncrypt.Decrypt(Password));
            _MAwsEmail.ToEmail = User;

            BAwsSDK.SendEmailAsync(_MAwsEmail);
        }
Esempio n. 2
0
        private void SendSESValidate(string Email)
        {
            int               val          = 0;
            MParameter        parameterBE  = new MParameter();
            List <MParameter> parameterBEs = new List <MParameter>();

            parameterBE.Code = "MAIL_VALIDATE";
            parameterBEs     = BParameter.List(parameterBE, ref val);

            if (val.Equals(0))
            {
                _MAwsEmail.Subject = "UNITLIFE - Registration";
                _MAwsEmail.Message = parameterBEs[0].Valor1;
                _MAwsEmail.ToEmail = Email;

                BAwsSDK.SendEmailAsync(_MAwsEmail);
            }
        }
Esempio n. 3
0
        private void SendSES(string Password, string Email)
        {
            int               val          = 0;
            MParameter        parameterBE  = new MParameter();
            List <MParameter> parameterBEs = new List <MParameter>();

            parameterBE.Code = "MAIL_PASS";
            parameterBEs     = BParameter.List(parameterBE, ref val);

            if (val.Equals(0))
            {
                _MAwsEmail.Subject = "UNITLIFE - User generation";
                _MAwsEmail.Message = parameterBEs[0].Valor1.Replace("[Password]", UEncrypt.Decrypt(Password));
                _MAwsEmail.ToEmail = Email;

                BAwsSDK.SendEmailAsync(_MAwsEmail);
            }
        }