question

SAMWILSON-4360 avatar image
0 Votes"
SAMWILSON-4360 asked SAMWILSON-4360 answered

Logging emails sent out using Azure Timer Trigger Function App

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://docs.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MughundhanRaveendran-MSFT avatar image
0 Votes"
MughundhanRaveendran-MSFT answered MughundhanRaveendran-MSFT commented

Hi @SAMWILSON-4360 ,

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://docs.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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SAMWILSON-4360 ,

Just checking to see if the above answer was helpful or not

0 Votes 0 ·
SAMWILSON-4360 avatar image
0 Votes"
SAMWILSON-4360 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.