A mail server is required for sending emails. The mailx package needs to be present in the container or container image.
mailx
Emails can be used to notify designated personnel about important system events such as failures or warnings.