Thursday 13 February 2014

Configuring BPM for sending email notification with GMAIL

Step 1 : Import certificates from gmail and add it to your server trust store. Any email server uses two protocols to send/receive messages.

SMTP for sending mails
    You can download the certificates using an opensource software called openssl. First, you need to download and install it. Downloading SMTP certificate (needed to SEND email)
    Open command prompt and cd to openssl_install_folder/bin
    Give the below command to view the smtp certificate
    openssl s_client -connect smtp.gmail.com:465

    Import of the certificate into the JDK with:

    <JAVA_HOME>/bin/keytool -import -alias smtp.gmail.com -keystore <JAVA_HOME>/jre/lib/security/cacerts -file <JAVA_HOME>/jre/lib/security/gmail.cer
    
    

    Comment out the option in the field EXTRA_JAVA_PROPERTIES for the setDomainEnv script to avoid the certificate to be loaded from the DemoTrust


    -Djavax.net.ssl.trustStore=${WL_HOME}/server/lib/DemoTrust.jks

    Then the following configurations has to be made through the EM




    Restart the Domain and after that send a test notification as below





    No comments:

    Post a Comment