Reputation: 12235
I have configured email notifications using the Azure Communication Services. However, the emails are always sent from the "DoNotReply" user. Would it be possible to use something more meaningful for the users to understand/fitler the emails?
The portal only shows a single option, even with a custom domain:
I have tried changing "replyTo" (although no reply is obviously intended), but that did not help, outlook/gmail still showed the "DoNoReply" as sender. Can I somehow change the sender so that it looks nicer for the users?
The code I have tried with "replyTo" is below:
const client = new EmailClient(connectionString);
const emailMessage: EmailMessage = {
senderAddress: "[email protected]",
replyTo: [
{
address: "[email protected]",
displayName: "Some Fancy Name"
}
],
content: {
subject,
html
},
recipients
};
Upvotes: 5
Views: 2946
Reputation: 33
The ability to add new Mail From addresses (or change the default one) is currently disabled in the portal for accounts where the send limits are default values.
You need to raise a support request and ask for the email sending limits to be increased. Once this is granted then the system will allow you to add alternative Mail From addresses.
I went through this process recently.
Upvotes: 1
Reputation: 136126
It is certainly possible to do so. Please see the detailed instructions here: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/add-multiple-senders.
Currently you can do so by following these steps in Azure portal:
You should also be able to do so by using one of the available SDKs for communication service.
Upvotes: 3