Azure communication service - SMTP endpoints aren't exposed

suresh.kachwa 0 Reputation points
2023-06-19T03:44:35.5666667+00:00

How do I use email communication and communication service to send emails, when it comes to OCI, OCI does expose the SMTP endpoint, port, and SMTP credentials and we use these details in our spring boot application for email service, do not see anything such in Azure.

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
684 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 16,186 Reputation points
    2023-07-11T20:58:30.1033333+00:00

    Hi@suresh.kachwa apologies for the delay. Can you please explain what "OCI" stands for in this context?

    To my knowledge, SMTP endpoint, port, and SMTP credentials, Azure Communication Services does not expose these details as it uses its own APIs to send emails.

    Azure Communication Services provides an Email Communication Service that allows you to send emails from your application. To use this service, you need to create an Email Communication Service resource in your Azure subscription. Once you have created the resource, you can connect it to your Azure Communication Service resource and start sending emails

    To connect your Email Communication Service resource to your Azure Communication Service resource, you need to follow the steps provided in the following document: Connect Email Communication Service with an Azure Communication Service resource.

    Once you have connected your Email Communication Service resource to your Azure Communication Service resource, you can use the Email client library to send emails**.** The Email client library provides a set of APIs that you can use to send emails from your application. You can find more information about the Email client library in the following document: Email client library.

    0 comments No comments

  2. suresh.kachwa 0 Reputation points
    2023-07-15T06:46:16.7333333+00:00

    Hi @Grmacjon-MSFT sorry for the delay, OCI here is Oracle Cloud, I can send email using the "az communication email send" command but looks like Azure doesn't have a terraform resource to automate the creation of "mail from address" in Azure email communication service and nor there is a CLI command and we will need this to automate for each application in AKS and that is how we have been doing it in OCI right now.

    Example: From Jenkins, if you trigger a deployment of your application with the application name set to macjon then a Jenkins stage with "create az email account" will call a terraform config or cli command to create macjon@domain.com mail from address but looks like we have no option to automate this