fix propblem in sending mails