Receive Email(s)

1
0
-1

The only tutorials I've found are for sending emails, also on documentation there is only sending tutorial. Is there any way to implement the receiving? Even with custom java code?

1 answer

1
+2
-1
This one is the BEST answer!

Yes,

but it depends on your email server.

You need to save the msg to a directory accessible by the web server and then fire a REST Message to Bonitasoft to start the upload process.

regards
Seán

PS: As this reply offers an answer your question, and if you like it, please Mark UP and/or as Resolved.

Comments

Submitted by valkon.gr on Tue, 04/04/2017 - 11:39

Thanks for your answer but I have another question that is related. Is it possible to execute custom java code through bonita? The java code will get the emails and bonita will call REST web service. Is something like that possible?

Submitted by Sean McP on Tue, 04/04/2017 - 20:01

Is it possible to execute custom java code through bonita?

Yes, though script connectors attached to tasks. Groovy or Java is supported.

The java code will get the emails and bonita will call REST web service. Is something like that possible?

Don't understand the bit bonita will call REST web service. Yes the Java code can read the saved email and then work on it. The code can then be used to use REST to work with other system but not to start the upload.

For example this is the way we do it:

  1. Hmailserver receives msg and saves it to Bonitasoft accessible directory
  2. Hmailserver executes trigger code to tell Bonitasoft there is a msg waiting to be picked up, this code uses REST to login to the server, start the upload process and log off. Hmailserver trigger https://www.hmailserver.com/documentation/latest/?page=com_example_trigg.... There should be something similar for your mail server, which you haven't said what it is yet.
  3. Bonitasoft starts the upload process, reads, processes and archives the chosen msg. Then finishes.

Very easy.

Submitted by valkon.gr on Tue, 04/04/2017 - 22:23

Thank you very much for taking the time to answer me!

Notifications