server side structure modified and send email service improved