Streaming live at 10am (PST)

Generate membership or voucher code

Hi, does anyone know how i can generate a membership number or voucher code once the user fill up a registration form? I also wanted the same number or code to be send to the user’s email via auto-generated mail. Thanks