Class EmailContent
java.lang.Object
com.azure.communication.email.models.EmailContent
Content of the email.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHtml()
Get the html property: Html version of the email message.Get the plainText property: Plain text version of the email message.Get the subject property: Subject of the email message.Set the html property: Html version of the email message.setPlainText
(String plainText) Set the plainText property: Plain text version of the email message.
-
Constructor Details
-
EmailContent
Constructor for EmailContent- Parameters:
subject
- the subject of the email message
-
-
Method Details
-
getSubject
Get the subject property: Subject of the email message.- Returns:
- the subject value.
-
getPlainText
Get the plainText property: Plain text version of the email message.- Returns:
- the plainText value.
-
setPlainText
Set the plainText property: Plain text version of the email message.- Parameters:
plainText
- the plainText value to set.- Returns:
- the EmailContent object itself.
-
getHtml
Get the html property: Html version of the email message.- Returns:
- the html value.
-
setHtml
Set the html property: Html version of the email message.- Parameters:
html
- the html value to set.- Returns:
- the EmailContent object itself.
-