Alert or Mailing Service

Hi to everyone!

I’m new in scala, in this days I’m searching if there is a method that I can implementate in my project for activating a service of notification.

I want that the possible error/unauthorized access and other possibily problem can be sent with an email to the administrator of the system , is this possible in scala?