Wednesday, 24 October 2012

Considerations when... Writing Send-logs-to-support

 A reminder of the considerations to take into account when writing the common 'send logs to support' function

- Take Screenshot of the application
- Zip log files
- Assign EmailMessage.Importance = High for Prod
- Subject of email message should have the environment
- Limit max # of emails per minute (to say, 10) to save flood server incase of a bug that gets it into a tight loop
- Don't send messages to entire group when debugging - send to current dev only by using
         #if DEBUG
 - Get current AD user's email address by using
         UserPrincipal.Current.EmailAddress
- Make image attachments inline in the email message by using  FileAttachment.ContentId



No comments:

Post a Comment