add headers in the dump of the request when sending mail after errors