set function "sendRegistrationEmail" as Global function
add