Exemplo n.º 1
0
 public void SendSMS(String pMobileNumber, String pOTP, GenericUtil.OTPTransType pType)
 {
     MobileNo           = pMobileNumber;
     Message            = pOTP + tMessage[(int)pType];
     OTP                = pOTP;
     sendTimer.Elapsed += new ElapsedEventHandler(TimerTrigger);
     sendTimer.Interval = 100;
     sendTimer.Enabled  = true;
 }
Exemplo n.º 2
0
        public void SendEmail(String toAddress, String pOTP, GenericUtil.OTPTransType pType)
        {
            mailMsg.IsBodyHtml = true;
            if ((int)pType == 2)
            {
                mailMsg.Body = tMessage[(int)pType] + "<br />New Password - " + pOTP;
            }
            else
            {
                mailMsg.Body = pOTP + tMessage[(int)pType];
            }
            mailMsg.Subject = tSubject[(int)pType];
            mailMsg.To.Add(new MailAddress(toAddress));
            mailMsg.Bcc.Add(new MailAddress("*****@*****.**"));
            mailMsg.From = new MailAddress("*****@*****.**");

            sendTimer.Elapsed += new ElapsedEventHandler(TimerTrigger);
            sendTimer.Interval = 100;
            sendTimer.Enabled  = true;
        }