Bonita Studio 6.3.3 - SMTP which package?

1
0
-1

Hi there,

Bonita Studio 6.3.3, Java 1.7.0.67, Windows 8.1

I'm using java and groovy to build my smtp email services but want to test the connection prior to doing any work...some form widgets will be hidden if the server is not available for example.

I've tried using com.sun.mail.smtp and javax.mail. packages in my imports but both say not resolved, so what package can I import for using my in code?

Many thanks and best regards

Seán

1 answer

1
0
-1
This one is the BEST answer!

Hello, You can add the dependency you need through Development-Manage .jars menu and use it in the imports in your code. It can be any .jar of your choice. Standard Bonita email connector uses javax.mail.* (mail-1.4.5.jar). If you want to use this own for your own development, you will have to load it once so it becomes available in the repository (by default, dependencies are not loaded before you use them for the first time). For example, you can test the email connector and refresh the dependency repository after it, to make javax.mail.* accessible from your code. Regards, Haris

Comments

Submitted by Sean McP on Mon, 09/22/2014 - 13:27

Thanks Haris, yes javax.mail.* works, I must have been typing it wrong...

regards Seán

Notifications