Bugfix for send email methods.