[IMP] mail: store the reason when failing to send an email; usability improvements in configuration, now showing the number of failed emails + links for easier configuration.