StringBuilder emailMessage = new StringBuilder(); emailMessage.Append(\"Dear Payment Team ,\"); emailMessage.Append(\"Please find the Payment ins
I suggest you the simplest way to send email on exception - using Elmah. Please follow this guide line for the solution: https://www.stormconsultancy.co.uk/blog/development/tools-plugins/setup-email-alerts-from-elmah-when-exceptions-are-raised/