I
InsightNexus

SmsClient (Azure SDK for Java Reference Documentation)

Author

Rachel Ross

Published Feb 16, 2026

SmsClient (Azure SDK for Java Reference Documentation)
public final class SmsClientextends Object

Client for sending SMS messages with Azure Communication SMS Services.

  • Method Summary

    Sends an SMS message from a phone number that belongs to the authenticated account.

    Sends an SMS message from a phone number that belongs to the authenticated account.

    Sends an SMS message from a phone number that belongs to the authenticated account.

    Sends an SMS message from a phone number that belongs to the authenticated account.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • send

      Sends an SMS message from a phone number that belongs to the authenticated account.

      Parameters:
      from - Number that is sending the message.
      to - The recipient's phone number.
      message - message to send to recipient.
      Returns:
      response for a successful send Sms request.
    • send

      Sends an SMS message from a phone number that belongs to the authenticated account.

      Parameters:
      from - Number that is sending the message.
      to - The recipient's phone number.
      message - message to send to recipient.
      options - set options on the SMS request, like enable delivery report, which sends a report for this message to the Azure Resource Event Grid.
      Returns:
      The Sms send result.
    • send

      Sends an SMS message from a phone number that belongs to the authenticated account.

      Parameters:
      from - Number that is sending the message.
      to - A list of the recipient's phone numbers.
      message - message to send to recipient.
      Returns:
      response for a successful send Sms request.
    • sendWithResponse

      Sends an SMS message from a phone number that belongs to the authenticated account.

      Parameters:
      from - Number that is sending the message.
      to - A list of the recipient's phone numbers.
      message - message to send to recipient.
      options - set options on the SMS request, like enable delivery report, which sends a report for this message to the Azure Resource Event Grid.
      context - A Context representing the request context
      Returns:
      response for a successful send Sms request.