1.0.0-beta.2 (2023-03-01)
Features Added
- AAD token auth has been added for
EmailClient
andEmailAsyncClient
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 underattachments
has been changed tocontentInBase64
- The
attachmentType
property underattachments
has been changed to 'contentType'. This now accepts the attachment mime type. - The
sender
property has been changed tosenderAddress
. - The
email
property under the recipient object has been changed toaddress
. - 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
orx-msmail-priority
custom headers.