You can do that by using the Anvil User Service and there’s built in Email Service:
Also, see this post about the extent that you can format the emails you send: