fix for sending mails