fix sendemail redeclaration problem