public Task SendAsync(IdentityMessage message)
 {
     // Plug in your sms service here to send a text message.
     //You need to make sure your google account is signed up
     SharpVoice.Voice v = new SharpVoice.Voice("*****@*****.**", "YourPassword");
     v.SendSMS(message.Destination, message.Body);
     return Task.FromResult(0);
 }
Beispiel #2
0
 public Task SendAsync(IdentityMessage message)
 {
     // Plug in your sms service here to send a text message.
     //You need to make sure your google account is signed up
     SharpVoice.Voice v = new SharpVoice.Voice("*****@*****.**", "YourPassword");
     v.SendSMS(message.Destination, message.Body);
     return(Task.FromResult(0));
 }
Beispiel #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="message"></param>
        /// <returns></returns>
        /// <remarks></remarks>
        public Task SendAsync(IdentityMessage message)
        {
            var log = new LoggingService();

            string twilioPhoneNumber = SecureSettings.GetValue(phoneKey);
            string AuthToken = SecureSettings.GetValue(authTokenKey);
            string AccountSid = SecureSettings.GetValue(accountSidKey);

            SharpVoice.Voice v = new SharpVoice.Voice(AuthToken, AccountSid);

            var result = v.SendSMS(message.Destination, message.Body);

            log.Info(result);

            // Plug in your sms service here to send a text message.
            return Task.FromResult(0);
        }