Mails can be sent by using the mail component that provides either Session or MimePartDataSource factories.