Share via

Logging emails sent out using Azure Timer Trigger Function App

SAM WILSON 21 Reputation points
2021-10-19T20:41:07.007+00:00

We recently set up an Azure Timer Trigger Function App that uses data from an on-prem database to send out emails to certain users everyday when those user's passwords are soon to expire (within 30 days, 15 days, 7 days, and everyday within 7 days leading up to expiration).
Rightnow, the developer is having the emails that are sent out each day to his own inbox. I'm wondering if there is a standard way or storing/logging the emails that are sent out. I happened to see "Application Insights" and wondering if that could be used/applied to achieve this.
Application Insights article: https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

Answer accepted by question author

MughundhanRaveendran-MSFT 12,511 Reputation points
2021-10-20T07:29:15.627+00:00

Hi @SAM WILSON ,

Thanks for reach out here.

Yes. You can use Application insights Api for custom events and metrics to store mails as a custom telemetry data. This data can be stored as logs and can be queried using log analytics.

App insights core telemetry Api : https://learn.microsoft.com/en-us/azure/azure-monitor/app/api-custom-events-metrics

Please note that there are some limitations to this approach

Additionally, there are also other resources in Azure to store mails / data. You can choose storage accounts or any choice of your database whichever suits your requirement.

Feel free to reach out to me if you have queries.

I hope this helps!

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. SAM WILSON 21 Reputation points
    2021-10-25T19:13:35.543+00:00

    Thank you Mughandhan! I'm just seeing your response and sharing it with my developer. I will most likely reach back out in the next week or two.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.