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
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/includes/add-multiple-senders-java.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ ms.custom: mode-other
14
14
## Prerequisites
15
15
16
16
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/dotnet/).
17
-
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../../quickstarts/email/create-email-communication-resource.md)
18
-
- An [Azure Managed Domain](../../quickstarts/email/add-azure-managed-domains.md) or [Custom Domain](../../quickstarts/email/add-custom-verified-domains.md) provisioned and ready.
19
-
- We will be using a [service principal for authentication](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET`.
17
+
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../create-email-communication-resource.md)
18
+
- An [Azure Managed Domain](../add-azure-managed-domains.md) or [Custom Domain](../add-custom-verified-domains.md) provisioned and ready.
19
+
- We will be using a [service principal for authentication](../../../../active-directory/develop/howto-create-service-principal-portal.md). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET`.
Update the code sample below with the resource group name, the email service name, and the domain name that you would like to add this username to. To add multiple sender usernames, you will need to repeat this code sample multiple times.
48
+
When Email Domain is provisioned to send mail, it has default MailFrom address as [email protected] or
49
+
if you have configured custom domain such as "notification.azuremails.net" then the default MailFrom address as "[email protected]" added. You can configure and add additional MailFrom addresses and FROM display name to more user friendly value.
50
+
51
+
The username you are configuring is the user alias that will be used in your MailFrom address. For example, [email protected] would be the new MailFrom address.
52
+
53
+
Update the code sample below with the resource group name, the email service name, and the domain name that you would like to add this username to. This information can be found in portal by navigating to the domains resource you created when setting up the prerequisites. The title of the resource will be `<your-email-service-name>/<your-domain-name>`. The resource group name can be found in the Essentials sections in the domain resource Overview blade.
54
+
55
+
To add multiple sender usernames, you will need to repeat this code sample multiple times.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/includes/add-multiple-senders-js.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ ms.custom: mode-other
14
14
## Prerequisites
15
15
16
16
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/dotnet/).
17
-
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../../quickstarts/email/create-email-communication-resource.md)
18
-
- An [Azure Managed Domain](../../quickstarts/email/add-azure-managed-domains.md) or [Custom Domain](../../quickstarts/email/add-custom-verified-domains.md) provisioned and ready.
19
-
- We will be using a [service principal for authentication](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET.
17
+
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../create-email-communication-resource.md)
18
+
- An [Azure Managed Domain](../add-azure-managed-domains.md) or [Custom Domain](../add-custom-verified-domains.md) provisioned and ready.
19
+
- We will be using a [service principal for authentication](../../../../active-directory/develop/howto-create-service-principal-portal.md). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET`.
20
20
21
21
## Install the required packages
22
22
@@ -41,7 +41,14 @@ mgmtClient = new CommunicationServiceManagementClient(credential, subscriptionId
41
41
42
42
## Add sender usernames
43
43
44
-
You can define the username you want to add in a parameters object. Update the code sample below with the resource group name, the email service name, and the domain name that you would like to add this username to. To add multiple sender usernames, you will need to repeat this code sample multiple times.
44
+
When Email Domain is provisioned to send mail, it has default MailFrom address as [email protected] or
45
+
if you have configured custom domain such as "notification.azuremails.net" then the default MailFrom address as "[email protected]" added. You can configure and add additional MailFrom addresses and FROM display name to more user friendly value.
46
+
47
+
You can define the username you want to add in a parameters object. The username you are configuring is the user alias that will be used in your MailFrom address. For example, [email protected] would be the new MailFrom address.
48
+
49
+
Update the code sample below with the resource group name, the email service name, and the domain name that you would like to add this username to. This information can be found in portal by navigating to the domains resource you created when setting up the prerequisites. The title of the resource will be `<your-email-service-name>/<your-domain-name>`. The resource group name can be found in the Essentials sections in the domain resource Overview blade.
50
+
51
+
To add multiple sender usernames, you will need to repeat this code sample multiple times.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/includes/add-multiple-senders-net.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,9 @@ ms.custom: mode-other
14
14
## Prerequisites
15
15
16
16
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/dotnet/).
17
-
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../../quickstarts/email/create-email-communication-resource.md)
18
-
- An [Azure Managed Domain](../../quickstarts/email/add-azure-managed-domains.md) or [Custom Domain](../../quickstarts/email/add-custom-verified-domains.md) provisioned and ready.
19
-
- We will be using a [service principal for authentication](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET.
20
-
17
+
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../create-email-communication-resource.md)
18
+
- An [Azure Managed Domain](../add-azure-managed-domains.md) or [Custom Domain](../add-custom-verified-domains.md) provisioned and ready.
19
+
- We will be using a [service principal for authentication](../../../../active-directory/develop/howto-create-service-principal-portal.md). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET`.
21
20
## Install the required packages
22
21
23
22
```console
@@ -42,7 +41,14 @@ ArmClient client = new ArmClient(new DefaultAzureCredential());
42
41
43
42
## Add sender usernames
44
43
45
-
You can define the username you want to add in a SenderUsernameResourceData object. Update the code sample below with the subscription id, resource group name, the email service name, and the domain name that you would like to add this username to. To add multiple sender usernames, you will need to repeat this code sample multiple times.
44
+
When Email Domain is provisioned to send mail, it has default MailFrom address as [email protected] or
45
+
if you have configured custom domain such as "notification.azuremails.net" then the default MailFrom address as "[email protected]" added. You can configure and add additional MailFrom addresses and FROM display name to more user friendly value.
46
+
47
+
You can define the username you want to add in a SenderUsernameResourceData object. The username you are configuring is the user alias that will be used in your MailFrom address. For example, [email protected] would be the new MailFrom address.
48
+
49
+
Update the code sample below with the resource group name, the email service name, and the domain name that you would like to add this username to. This information can be found in portal by navigating to the domains resource you created when setting up the prerequisites. The title of the resource will be `<your-email-service-name>/<your-domain-name>`. The resource group name and subscription id can be found in the Essentials sections in the domain resource Overview blade.
50
+
51
+
To add multiple sender usernames, you will need to repeat this code sample multiple times.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/includes/add-multiple-senders-python.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ ms.custom: mode-other
14
14
## Prerequisites
15
15
16
16
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/dotnet/).
17
-
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../../quickstarts/email/create-email-communication-resource.md)
18
-
- An [Azure Managed Domain](../../quickstarts/email/add-azure-managed-domains.md) or [Custom Domain](../../quickstarts/email/add-custom-verified-domains.md) provisioned and ready.
19
-
- We will be using a [service principal for authentication](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET.
17
+
- An Azure Email Communication Services Resource created and ready to provision the domains [Get started with Creating Email Communication Resource](../create-email-communication-resource.md)
18
+
- An [Azure Managed Domain](../add-azure-managed-domains.md) or [Custom Domain](../add-custom-verified-domains.md) provisioned and ready.
19
+
- We will be using a [service principal for authentication](../../../../active-directory/develop/howto-create-service-principal-portal.md). Set the values of the client ID, tenant ID and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET`.
You can define the username you want to add in a parameters object. Update the code sample below with the resource group name, the email service name, and the domain name that you would like to add this username to. To add multiple sender usernames, you will need to repeat this code sample multiple times.
44
+
When Email Domain is provisioned to send mail, it has default MailFrom address as [email protected] or
45
+
if you have configured custom domain such as "notification.azuremails.net" then the default MailFrom address as "[email protected]" added. You can configure and add additional MailFrom addresses and FROM display name to more user friendly value.
46
+
47
+
You can define the username you want to add in a parameters object. The username you are configuring is the user alias that will be used in your MailFrom address. For example, [email protected] would be the new MailFrom address.
48
+
49
+
Update the code sample below with the resource group name, the email service name, and the domain name that you would like to add this username to. This information can be found in portal by navigating to the domains resource you created when setting up the prerequisites. The title of the resource will be `<your-email-service-name>/<your-domain-name>`. The resource group name can be found in the Essentials sections in the domain resource Overview blade.
50
+
51
+
To add multiple sender usernames, you will need to repeat this code sample multiple times.
0 commit comments