Added mail functionality for group registration.

Updated HAA_sendMail() .