There are many ways to create unique registration number.
The simplest way is to keep the registration number attribute type as AutoNumber or you can decide your own logic for creating unique number (Eg. yyyyMM_<incremental number>)
Use email connector module (Email | Mendix Documentation) for sending email. Use placeholder to send the registration number in email.