email sending intergrated with chat window