Wednesday, 17 September 2014

Custom email action in web content managment

   1)  Create below attributes  in was console under content manager service under reps (http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.ent.doc/wcm/wcm_config_smtp.html)

  connect.connector.mailconnector=defaultsmtpserver,defaultfromaddress,defaultreplytoaddress,defaultusername,defaultpassword
      connect.connector.mailconnector.defaultsmtpserver=smtp.gmail.com
      connect.connector.mailconnector.defaultfromaddress=krao3467@gmail.com
      connect.connector.mailconnector.defaultreplytoaddress=krao3467@gmail.com
#    Uncomment and populate the following values for secure SMTP
#    //If you use the username and password properties, you must
      connect.connector.mailconnector.defaultusername=krao3467@gmail.com
      connect.connector.mailconnector.defaultpassword=*********


22)  Imported certificaties from smtp.gmail.com and port 465

  3) Update below values in wkplc.properties file and restart server{C:\IBM\WebSphere\wp_profile\ConfigEngine}
    standalone.ldap.attributes.mapping.ldapName=mail
    standalone.ldap.attributes.mapping.portalName=ibm-primaryEmail
    //Run below command
    ./ConfigEngine.sh wp-update-standalone-ldap-attribute-config -DWasPassword=password 

  4) Now login portal admin and then web content management and then create email action associate it to worklflow stage{publish/expire} then workflow{express workflow}
.
  5) Now navigate to any previously created content modify the text and republish it. Then check for email in your check box.




1 comment:

  1. Hi Krishna, Getting below exception If possible could you please give solution for this
    EmailAction E
    com.presence.connect.connector.ConnectorException: E-mail action failed: Message could not be sent: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. u24sm1736605pfa.94 - gsmtp

    ReplyDelete

Custom single threaded java server

 package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...