All my users will not be approved until they are approved by the administrator, the administrator will register on the site to mark the user as approved. I follow Develop documents here , which works great, but how to send an email to the administrator after the new user has registered so that the administrator knows and can confirm the subscription?
As in your user model, follow these steps:
after_create :send_admin_mail def send_admin_mail ###Send email stuff here end
You can use ActionMailer .
, - Devise, . .