on 01-25-2012 6:49 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.