cancel
Showing results for 
Search instead for 
Did you mean: 

Email notification to owner after each approval phase ?

Former Member
0 Kudos

Hi guys,

It is possible to notify the owner of a document (ex Master Agrement) after each approval phase has been completed ?

Currently the owner is notified after the workflow has been completely approved (all phases approved).

Thank you in advance,

Simion

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Simion,

You can do that by using the code.

below is the code:-

//Set the host smtp address
Properties props = new Properties();

// create some properties and get the default Session
Session session1 = Session.getDefaultInstance(props, null);
session1.setDebug(debug);

// create a message
Message msg = new MimeMessage(session1);
// set the from and to address
InternetAddress addressFrom = new InternetAddress(fromAddress);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[1];
addressTo[0] = new InternetAddress(userBean.getEmail());
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Setting the Subject and Content Type
msg.setSubject(mailSub);
msg.setContent(txt,"text/html");
Transport.send(msg);

Hope this will help you.

Thanks,

Ankur Goyal

Former Member
0 Kudos

Thank you Goyal,

This looks pretty advanced ...

Does this mean that by default or as standard configuration the system is never sending email notifications to the owner ? In the Collaborator Role Definitions there is an option called: "Do Not Send Collaborator Alerts or Notice". Is there a list where i can see all of this notifications that could be sent ?

Regards,

Simion