Added department field to emails