[fix bug 879759]Mail functionality for the swag/bug automation.