Skip to content

Implement the SMS provider #6

@JeffreyPerplex

Description

@JeffreyPerplex

I tried to register my own SMS Provider. I will sent a Pull Request later on, when I've got it to work, but for now the implementation is hidden in an internal class.

I've implemented your BaseSMSPRovider-class with the following code:

`using PerplexLibSMS.Interfaces;
using PerplexLibSMS.SMSApis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _2FA.Code
{
public class TwoFactorSMSPerplexProvider : Orc.Fortress.SMSProvider.BaseSMSProvider
{
public override void SendSms(string number, string message)
{
ISMSApi api = new CMProvider();
api.From = "+31263830734";
api.To = new List() {number};
var result = api.Send(message);

    }
}

}`

But then what? I expected that maybe in Umbraco the dropdownlist with "Active SMS Providers" would contain "TwoFactorSMSPerplexProvider" or something like that. Also I tried to set a value like 'TwoFactorSMSPerplexProvider' into the table FortressSettings but that didn't work either.

Can you help me out?

Thanks, Jeffrey

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions