In CrafterCMS, I setup my local environment to enable the workflow by following these guides:
Configure workflow notifications http://docs.craftercms.org/en/2.5/site-administrators/studio/configure-notifications.html?highlight=workflow
Setup email configuration http://docs.craftercms.org/en/2.5/system-administrators/tmp/installation-guides/configure.html?highlight=workflow
add notificationService.v2.enable=true http://docs.craftercms.org/en/2.5/projects/studio/configuration/notifications.html?highlight=notification
but when I'm creating, editing or publishing a component the email is not sent. What I'm missing?
Another thing to check: The content you are publishing must be in workflow in order for an email to be sent. The out of the box workflow configuration is a simple workflow whereby Admins can simply publish, while authors must submit content for approval.
In order for you to receive an email, you must submit content as an author. This action will start a workflow.