Skip to content

azure-communication-email_1.0.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@azure-sdk azure-sdk released this 06 Mar 23:39
1672b9c

1.0.0-beta.2 (2023-03-01)

Features Added

  • AAD token auth has been added for EmailClient and EmailAsyncClient

Breaking Changes

  • Reworked the SDK to follow the LRO (long running operation) approach. The 'beginSend' method returns a poller that can be used to check for the status of sending the email and retrieve the result. The return object has been adjusted to fit this approach.
  • The EmailMessage model has been reworked. It now accepts properties through setters. The EmailRecipients and EmailContent objects have been removed.
  • The getSendStatus method has been removed.
  • The EmailAttachment constructor now accepts BinaryData instead of a string
  • The contentBytesBase64 property under attachments has been changed to contentInBase64
  • The attachmentType property under attachments has been changed to 'contentType'. This now accepts the attachment mime type.
  • The sender property has been changed to senderAddress.
  • The email property under the recipient object has been changed to address.
  • Custom headers in the email message are now key/value pairs.
  • The importance property was removed. Email importance can now be specified through either the x-priority or x-msmail-priority custom headers.