send mail bugfix