Include this in your maven.xml file, and set the property test.mail.report
to true for the users that you want to send the mail from (typically just you continuous
integration environment).

Note that you have to include Xalan in your dependencies for this particular example (see the main
Maven FAQ for more information), and provide the
overview-summary.xsl file in your project's base directory. An example one is
distributed with Ant in etc/junit-noframes.xsl.

If you want to receive successful reports, exclude the <j:if test="${maven.test.failure}"> condition.