|
Overview
To send emails out of applications is a recurrent problem to which own proprietary solutions are often developed. The SMTP Mailer Extension Swiftlet assumes this problem within a SwiftMQ router network and enables every JMS client to send emails by simply sending a request to a queue. The Extension Swiftlet is installed once somewhere within the router network and is now at the disposal of every JMS client. Through this it is possible to send emails from JMS clients which are themselves within a network sector from which they have no mailserver access.

In this case the email transfer is done by the SwiftMQ routing architecture and permits for example the secure email transfer through unsecure sectors (e.g. Internet) by SSL to a central router, in which the Extension Swiftlet is installed and by which the mail sending will result. The email sending authorisation to JMS clients may be directed simply by the SwiftMQ authentification mechanism by granting the mailqueue sending rights of the Extension Swiftlets correspondingly.
Technical Implementation
The Extension Swiftlet can be installed on any router within a SwiftMQ router network and is now at the disposal of every JMS client of this network. The CLI script "install.cli", delivered in addition, can be used.
On installation, the Swiftlet creates a queue on the installation router named "mailout@<router>" by which it receives mail requests in kind of TextMessages. To make JMS clients independent of the mailqueue location it is recommended to define a JNDI alias "mailout" which points at this queue. Now, the location of the SMTP Mailer Extension Swiftlets may be changed without having an effect on the JMS clients.
The Swiftlet is configured with different properties like SMTP host, port, default addresses etc. and is now ready to sent. JMS clients generate a TextMessage to send an eMail, fill predefined properties and send this message to the mailout queue. If a JMSReplyTo is given concerning the TextMessage, the Swiftlet sends back a receipt which gives information about success or failure of the request.
The Swiftlet receives the incoming requests out of the mailout queue and sends the emails to the configured SMTP server. If a JMSReplyTo was given within the request, a receipt is sent back to the JMS client.
|
|