concept mail server in category esb

This is an excerpt from Manning's book Open-Source ESBs in Action: Example Implementations in Mule and ServiceMix.
This JDBC ServiceMix section has been a long one. Normally when you work with components from the Open ESB environment, you’ll use the NetBeans IDE. NetBeans provides easy code completion and great visual wizards for these JBI components so configuration will be easier. This has been the most complex type of configuration for this chapter, and one of the most difficult ones in this book. Rest assured that the next sections will be much easier. Now let’s see how to connect to mail servers to read and send mail.
Mail is a common way to integrate applications and to inform users and application maintainers of certain events. In this section we explain how to integrate Mule and ServiceMix with a mail server. We show how to use the SMTP and POP3 protocols from these two open source ESBs to communicate with a mail server. For the mail server we use Apache James, an open source mail server that supports all mail-related protocols. You could also use your own mail server for the examples in this section, but beware that mail which is read will be deleted by using the configuration shown here.
We once again focus on the connectivity functionality and only show you a couple of basic examples. The first one, as shown in figure 6.8, demonstrates how to send an email message to a mail server from Mule and ServiceMix.
Figure 6.8. We read a file from the file system with the ESB and forward the message to a mail server using SMTP connectivity.
![]()
The other example we implement with Mule and ServiceMix shows how to receive email messages from a mail server, as shown in figure 6.9.