@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.