Skip to content

Commit e16d873

Browse files
yogeshmoYogesh Mohanraj
andauthored
Updating EmailMessage model to accept the correct content model (Azure#25056)
Co-authored-by: Yogesh Mohanraj <ymohanraj@microsoft.com>
1 parent 57aa7d7 commit e16d873

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

sdk/communication/communication-email/review/communication-email.api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export type EmailContent = HtmlEmailContent | PlainTextEmailContent;
4141
// @public
4242
export interface EmailMessage {
4343
attachments?: EmailAttachment[];
44-
// Warning: (ae-forgotten-export) The symbol "EmailContent_2" needs to be exported by the entry point index.d.ts
45-
content: EmailContent_2;
44+
content: EmailContent;
4645
headers?: {
4746
[propertyName: string]: string;
4847
};

sdk/communication/communication-email/src/models.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT license.
33

44
import { CommonClientOptions, OperationOptions } from "@azure/core-client";
5+
import { EmailRecipients, EmailAttachment, EmailAddress } from "./models";
56

67
/**
78
* Client options used to configure Email Client API requests.
@@ -31,6 +32,24 @@ export interface PlainTextEmailContent {
3132
html?: string;
3233
}
3334

35+
/** Message payload for sending an email */
36+
export interface EmailMessage {
37+
/** Custom email headers to be passed. */
38+
headers?: { [propertyName: string]: string };
39+
/** Sender email address from a verified domain. */
40+
senderAddress: string;
41+
/** Email content to be sent. */
42+
content: EmailContent;
43+
/** Recipients for the email. */
44+
recipients: EmailRecipients;
45+
/** List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. */
46+
attachments?: EmailAttachment[];
47+
/** Email addresses where recipients' replies will be sent to. */
48+
replyTo?: EmailAddress[];
49+
/** Indicates whether user engagement tracking should be disabled for this request if the resource-level user engagement tracking setting was already enabled in the control plane. */
50+
userEngagementTrackingDisabled?: boolean;
51+
}
52+
3453
/** Optional parameters for the beginSend method. */
3554
export interface EmailSendOptionalParams extends OperationOptions {
3655
/** This is the ID used by the status monitor for this long running operation. */
@@ -45,7 +64,6 @@ export {
4564
EmailRecipients,
4665
EmailAddress,
4766
EmailAttachment,
48-
EmailMessage,
4967
EmailSendResponse,
5068
EmailSendHeaders,
5169
EmailSendResult,

0 commit comments

Comments
 (0)