Send Emails after Business Trasnaction in Azure

Kaushik Dutta 20 Reputation points
2024-05-13T13:29:55.01+00:00

Hi All,

We have a requirement to send emails containing business data (and contract file attachments) to external users (outside Org. domains) from applications hosted in Azure. Our backend services are either Az Functions or Services hosted in Azure App Service or in AKS, which will generate the files, store it in storage location and send the email with attachment to the external users (email address & other related information are configured in Databases).

What is the best Azure Service to choose in this case?

Using Azure Logic App with email connector?

Or Executing an Azure Function and calling Sendgrid?

Which one is more cost effective? What is the Standard Practice in Azure?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,399 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,401 questions
0 comments No comments
{count} votes

Accepted answer
  1. SwathiDhanwada-MSFT 18,031 Reputation points
    2024-05-14T06:41:34.97+00:00

    @Kaushik Dutta Both Azure Logic App with email connector and Azure Function with SendGrid can be used to send emails containing business data and contract file attachments to external users from applications hosted in Azure.Azure Logic App with email connector is a low-code solution that allows you to create workflows that integrate with various services, including email services. You can use the email connector to send emails with attachments to external users. This approach is easy to set up and requires minimal coding.

    Azure Function with SendGrid is a serverless solution that allows you to write code to send emails using the SendGrid API. This approach gives you more control over the email sending process and allows you to customize the email content and attachments. However, it requires more coding and configuration than the Logic App approach.

    In terms of cost, both solutions are cost-effective. Azure Logic App with email connector is priced based on the number of runs and the number of actions executed in each run. Azure Function with SendGrid is priced based on the number of function executions and the number of emails sent.

    The standard practice in Azure depends on the specific requirements of your application and your organization's preferences. If you prefer a low-code solution and don't require a high degree of customization, Azure Logic App with email connector may be the best choice. If you require more control over the email sending process and need to customize the email content and attachments, Azure Function with SendGrid may be the better option.

    In summary, both Azure Logic App with email connector and Azure Function with SendGrid can be used to send emails containing business data and contract file attachments to external users from applications hosted in Azure. The choice between the two depends on your specific requirements and preferences.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful