[fix bug 847462] Mail functionality for voting system.