This Jenkins plugin allows sending mail as a build step.