fixed sending mails