Class EmailContent

java.lang.Object
com.azure.communication.email.models.EmailContent

public final class EmailContent extends Object
Content of the email.
  • Constructor Details

    • EmailContent

      public EmailContent(String subject)
      Constructor for EmailContent
      Parameters:
      subject - the subject of the email message
  • Method Details

    • getSubject

      public String getSubject()
      Get the subject property: Subject of the email message.
      Returns:
      the subject value.
    • getPlainText

      public String getPlainText()
      Get the plainText property: Plain text version of the email message.
      Returns:
      the plainText value.
    • setPlainText

      public EmailContent setPlainText(String plainText)
      Set the plainText property: Plain text version of the email message.
      Parameters:
      plainText - the plainText value to set.
      Returns:
      the EmailContent object itself.
    • getHtml

      public String getHtml()
      Get the html property: Html version of the email message.
      Returns:
      the html value.
    • setHtml

      public EmailContent setHtml(String html)
      Set the html property: Html version of the email message.
      Parameters:
      html - the html value to set.
      Returns:
      the EmailContent object itself.