Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
4 replies Latest Post - ‏2014-01-10T13:59:21Z by sutter
LaraZiosi
LaraZiosi
8 Posts
ACCEPTED ANSWER

Pinned topic Can Liberty be used as an SMTP server?

‏2014-01-09T18:18:21Z |

When using Liberty 8.5.5.1, what options do we have to send out some type of notifications (not necessarily via e-mail)?

  • Alasdair
    Alasdair
    55 Posts
    ACCEPTED ANSWER

    Re: Can Liberty be used as an SMTP server?

    ‏2014-01-09T18:29:56Z  in response to LaraZiosi

    It really depends on what kind of notification you want to send. For example if you want to send an email you could package a Java Mail provider in your application to send emails, this will require an external SMTP server to connect to. If you want to send notifications to twitter you could use twitter4j. Depending on what type of notification you want to send you'll need a different library.

    Alasdair

    • LaraZiosi
      LaraZiosi
      8 Posts
      ACCEPTED ANSWER

      Re: Can Liberty be used as an SMTP server?

      ‏2014-01-09T19:29:34Z  in response to Alasdair

      Thank you, so if I ready your reply correctly, Liberty itself will not act as an SMTP server, contrary to what traditional WAS does?

      • gas
        gas
        3 Posts
        ACCEPTED ANSWER

        Re: Can Liberty be used as an SMTP server?

        ‏2014-01-09T21:44:44Z  in response to LaraZiosi

        Hi,

        Traditional WAS cannot act as SMTP server either, like none of JEE application servers. They are, as name stands Application servers , not a mail server. They however, provide services(JavaMail, JNDI)  to connect and use EXTERNAL SMTP server to send and receive mails from your application.

        Gas

        • sutter
          sutter
          6 Posts
          ACCEPTED ANSWER

          Re: Can Liberty be used as an SMTP server?

          ‏2014-01-10T13:59:21Z  in response to gas

          Correct, Gas.  Traditional WAS provided the JavaMail client as part of the full platform Java EE 6 offering.  JavaMail is not a requirement for the Java EE Web Profile, so it was not included with Liberty.  JavaMail provides the client side of the mail facility, not the server side.

          As Alasdair pointed out earlier, if JavaMail is desired on Liberty, you could easily package a JavaMail provider with your application.

          Hope this helps,
          Kevin