How to Enable registration email for a custom user role?

How to Enable registration email for a custom user role?

error code: 523