You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| EmailAddress | This class contains an email address and an option for a display name. |
26
-
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, and binary data for content. |
26
+
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, binary data for content, and an optional content ID to define it as an inline attachment. |
27
27
| EmailClient | This class is needed for all email functionality. You instantiate it with your connection string and use it to send email messages. |
28
28
| EmailClientOptions | This class can be added to the EmailClient instantiation to target a specific API version. |
29
29
| EmailContent | This class contains the subject and the body of the email message. You have to specify at least one of PlainText or Html content |
@@ -46,7 +46,7 @@ EmailSendResult returns the following status on the email operation performed.
46
46
47
47
## Prerequisites
48
48
49
-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
49
+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
50
50
- The latest version [.NET Core client library](https://dotnet.microsoft.com/download/dotnet-core) for your operating system.
51
51
- An Azure Email Communication Services Resource created and ready with a provisioned domain [Get started with Creating Email Communication Resource](../create-email-communication-resource.md)
52
52
- An active Communication Services resource connected with Email Domain and a Connection String. [Get started by Connecting Email Resource with a Communication Resource](../connect-email-communication-resource.md)
@@ -160,13 +160,13 @@ var emailClient = new EmailClient(endpoint, key);
160
160
161
161
#### [Send Email with synchronous status polling](#tab/send-smail-and-get-status-sync)
162
162
163
-
## Basic email sending
163
+
## Basic email sending
164
164
165
165
### Construct your email message
166
166
167
167
To send an email message, you need to:
168
168
- Define the email subject and body.
169
-
- Define your Sender Address. Construct your email message with your Sender information you get your MailFrom address from your verified domain.
169
+
- Define your Sender Address. Construct your email message with your Sender information you get your MailFrom address from your verified domain.
170
170
- Define the Recipient Address.
171
171
- Call the SendAsync method. Add this code to the end of `Main` method in **Program.cs**:
- Call SendAsync method that sends the email request as an asynchronous operation. Call with Azure.WaitUntil.Completed if your method should wait to return until the long-running operation has completed on the service. Call with Azure.WaitUntil.Started if your method should return after starting the operation.
187
+
- Call SendAsync method that sends the email request as an asynchronous operation. Call with Azure.WaitUntil.Completed if your method should wait to return until the long-running operation has completed on the service. Call with Azure.WaitUntil.Started if your method should return after starting the operation.
188
188
- SendAsync method returns EmailSendOperation that returns "Succeeded" EmailSendStatus if email is out for delivery and throws an exception otherwise. Add this code to the end of `Main` method in **Program.cs**:
EmailSendOperation only returns email operation status. To get the actual email delivery status, you can subscribe to "EmailDeliveryReportReceived" event that is generated when the email delivery is completed. The event returns the following delivery state:
218
218
219
-
- Delivered.
220
-
- Failed.
219
+
- Delivered.
220
+
- Failed.
221
221
- Quarantined.
222
222
223
223
See [Handle Email Events](../handle-email-events.md) for details.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/includes/send-email-java.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The following classes and interfaces handle some of the major features of the Az
23
23
| Name | Description |
24
24
| ---- |-------------|
25
25
| EmailAddress | This class contains an email address and an option for a display name. |
26
-
| EmailAttachment | This interface creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, and a string of content bytes. |
26
+
| EmailAttachment | This interface creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, a string of content bytes, and an optional content ID to define it as an inline attachment. |
27
27
| EmailClient | This class is needed for all email functionality. You instantiate it with your connection string and use it to send email messages. |
28
28
| EmailMessage | This class combines the sender, content, and recipients. Custom headers, attachments, and reply-to email addresses can optionally be added, as well. |
29
29
| EmailSendResult | This class holds the results of the email send operation. It has an operation ID, operation status and error object (when applicable). |
@@ -193,7 +193,7 @@ For simplicity, this quickstart uses connection strings, but in production envir
193
193
194
194
195
195
196
-
## Basic email sending
196
+
## Basic email sending
197
197
198
198
An email message can be crafted using the `EmailMessage` object in the SDK.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/includes/send-email-js.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ The following classes and interfaces handle some of the major features of the Az
23
23
| Name | Description |
24
24
| ---- |-------------|
25
25
| EmailAddress | This class contains an email address and an option for a display name. |
26
-
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, and binary data for content. |
26
+
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, binary data for content, and an optional Content ID to define it as an inline attachment. |
27
27
| EmailClient | This class is needed for all email functionality. You instantiate it with your connection string and use it to send email messages. |
28
28
| EmailClientOptions | This class can be added to the EmailClient instantiation to target a specific API version. |
29
29
| EmailContent | This class contains the subject and the body of the email message. You have to specify at least one of PlainText or Html content. |
@@ -153,7 +153,7 @@ const emailClient = new EmailClient(endpoint, key);
153
153
154
154
For simplicity, this quickstart uses connection strings, but in production environments, we recommend using [service principals](../../../quickstarts/identity/service-principal.md).
| EmailAddress | This class contains an email address and an option for a display name. |
26
-
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, and binary data for content. |
26
+
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../concepts/email/email-attachment-allowed-mime-types.md) string, binary data for content, and an optional content ID to define it as an inline attachment.|
27
27
| EmailClient | This class is needed for all email functionality. You instantiate it with your connection string and use it to send email messages. |
28
28
| EmailClientOptions | This class can be added to the EmailClient instantiation to target a specific API version. |
29
29
| EmailContent | This class contains the subject and the body of the email message. You have to specify at least one of PlainText or Html content |
@@ -46,7 +46,7 @@ EmailSendResult returns the following status on the email operation performed.
46
46
47
47
## Prerequisites
48
48
49
-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
49
+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
50
50
- The latest version [.NET Core client library](https://dotnet.microsoft.com/download/dotnet-core) for your operating system.
51
51
- An Azure Email Communication Services Resource created and ready with a provisioned domain [Get started with Creating Email Communication Resource](../create-email-communication-resource.md)
52
52
- An active Communication Services resource connected with Email Domain and a Connection String. [Get started by Connecting Email Resource with a Communication Resource](../connect-email-communication-resource.md)
@@ -151,13 +151,13 @@ var emailClient = new EmailClient(endpoint, key);
151
151
152
152
---
153
153
154
-
## Basic email sending
154
+
## Basic email sending
155
155
156
156
### Construct your email message
157
157
158
158
To send an email message, you need to:
159
159
- Define the email subject and body.
160
-
- Define your Sender Address. Construct your email message with your Sender information you get your MailFrom address from your verified domain.
160
+
- Define your Sender Address. Construct your email message with your Sender information you get your MailFrom address from your verified domain.
161
161
- Define the Recipient Address.
162
162
- Call the SendAsync method. Add this code to the end of `Main` method in **Program.cs**:
- Call SendAsync method that sends the email request as an asynchronous operation. Call with Azure.WaitUntil.Completed if your method should wait to return until the long-running operation has completed on the service. Call with Azure.WaitUntil.Started if your method should return after starting the operation.
178
+
- Call SendAsync method that sends the email request as an asynchronous operation. Call with Azure.WaitUntil.Completed if your method should wait to return until the long-running operation has completed on the service. Call with Azure.WaitUntil.Started if your method should return after starting the operation.
179
179
- SendAsync method returns EmailSendOperation that returns "Succeeded" EmailSendStatus if email is out for delivery and throws an exception otherwise. Add this code to the end of `Main` method in **Program.cs**:
EmailSendOperation only returns email operation status. To get the actual email delivery status, you can subscribe to "EmailDeliveryReportReceived" event that is generated when the email delivery is completed. The event returns the following delivery state:
209
209
210
-
- Delivered.
211
-
- Failed.
210
+
- Delivered.
211
+
- Failed.
212
212
- Quarantined.
213
213
214
214
See [Handle Email Events](../handle-email-events.md) for details.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/send-email-advanced/includes/prepend-java.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The following classes and interfaces handle some of the major features of the Az
22
22
| Name | Description |
23
23
| ---- |-------------|
24
24
| EmailAddress | This class contains an email address and an option for a display name. |
25
-
| EmailAttachment | This interface creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../../concepts/email/email-attachment-allowed-mime-types.md) string, and a string of content bytes. |
25
+
| EmailAttachment | This interface creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../../concepts/email/email-attachment-allowed-mime-types.md) string, a string of content bytes, and an optional content ID to define it as an inline attachment. |
26
26
| EmailClient | This class is needed for all email functionality. You instantiate it with your connection string and use it to send email messages. |
27
27
| EmailMessage | This class combines the sender, content, and recipients. Custom headers, attachments, and reply-to email addresses can optionally be added, as well. |
28
28
| EmailSendResult | This class holds the results of the email send operation. It has an operation ID, operation status and error object (when applicable). |
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/send-email-advanced/includes/prepend-js.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The following classes and interfaces handle some of the major features of the Az
22
22
| Name | Description |
23
23
| ---- |-------------|
24
24
| EmailAddress | This class contains an email address and an option for a display name. |
25
-
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../../concepts/email/email-attachment-allowed-mime-types.md) string, and binary data for content. |
25
+
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../../concepts/email/email-attachment-allowed-mime-types.md) string, binary data for content, and an optional content ID to define it as an inline attachment. |
26
26
| EmailClient | This class is needed for all email functionality. You instantiate it with your connection string and use it to send email messages. |
27
27
| EmailClientOptions | This class can be added to the EmailClient instantiation to target a specific API version. |
28
28
| EmailContent | This class contains the subject and the body of the email message. You have to specify at least one of PlainText or Html content. |
| EmailAddress | This class contains an email address and an option for a display name. |
26
-
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../../concepts/email/email-attachment-allowed-mime-types.md) string, and binary data for content. |
26
+
| EmailAttachment | This class creates an email attachment by accepting a unique ID, email attachment [MIME type](../../../../concepts/email/email-attachment-allowed-mime-types.md) string, binary data for content, and an optional content ID to define it as an inline attachment.|
27
27
| EmailClient | This class is needed for all email functionality. You instantiate it with your connection string and use it to send email messages. |
28
28
| EmailClientOptions | This class can be added to the EmailClient instantiation to target a specific API version. |
29
29
| EmailContent | This class contains the subject and the body of the email message. You have to specify at least one of PlainText or Html content |
@@ -46,7 +46,7 @@ EmailSendResult returns the following status on the email operation performed.
46
46
47
47
## Prerequisites
48
48
49
-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
49
+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
50
50
- The latest version [.NET Core client library](https://dotnet.microsoft.com/download/dotnet-core) for your operating system.
51
51
- An Azure Email Communication Services Resource created and ready with a provisioned domain [Get started with Creating Email Communication Resource](../../create-email-communication-resource.md)
52
52
- An active Communication Services resource connected with Email Domain and a Connection String. [Get started by Connecting Email Resource with a Communication Resource](../../connect-email-communication-resource.md)
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/send-email-advanced/includes/prepend-python.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,9 +50,10 @@ message = {
50
50
"senderAddress": "str", # Sender email address from a verified domain. Required.
51
51
"attachments": [
52
52
{
53
-
"contentInBase64": "str", # Base64 encoded contents of the attachment. Required.
54
-
"contentType": "str", # MIME type of the content being attached. Required.
55
53
"name": "str"# Name of the attachment. Required.
54
+
"contentType": "str", # MIME type of the content being attached. Required.
55
+
"contentInBase64": "str", # Base64 encoded contents of the attachment. Required.
56
+
"contentId": "str"# Unique identifier (CID) to reference an inline attachment. Optional
56
57
}
57
58
],
58
59
"userEngagementTrackingDisabled": bool, # Optional. 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.
0 commit comments