Send Email like notification

Hi guys,

I’d like to know for a classic email notification after user actions if it is better ti call directly the send email function at the end of each action or you have grouped in a class (static)

For example a registration confirm mail ecc.

In the second case I need to create a component if I want a static class?

Sorry but I’m newbie!

Thanks a lot