Removed wrong type check from send_*_mail() functions.