Interface ISmsSender
Service to send an SMS.
Namespace: Umbraco.Cms.Core.Mail
Assembly: Umbraco.Core.dll
Syntax
public interface ISmsSender
Remarks
Borrowed from ASP.NET Core documentation samples.
Methods
View SourceSendSmsAsync(string, string)
Sends an SMS message asynchronously.
Declaration
Task SendSmsAsync(string number, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | number | The phone number to send the SMS to. |
| string | message | The message content to send. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |