<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Unable to set the mail configuration properties in JBPM 4.3
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/viren_agarwal_rsg">virendra agarwal</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/549221#549221">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Maciej,</p><p>Thanks for your effort. I tried your approach but it didnt work for me i got the same response.</p><p>Here it is what i did.</p><p>jbpm.mail.properties</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>mail.transport.protocol=smtp<br/>mail.smtp.auth=true<br/>mail.smtp.host=smtp.rsgsystems.com<br/>mail.smtp.port=25<br/><a class="jive-link-email-small" href="mailto:mail.from=virendag@rsgsystems.com" target="_blank">mail.from=virendag@rsgsystems.com</a><br/>mail.smtp.quitwait=false<br/>mail.debug=true</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>jbpm.cfg.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><jbpm-configuration></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <import resource="jbpm.default.cfg.xml" /><br/>  <import resource="jbpm.businesscalendar.cfg.xml" /><br/>  <import resource="jbpm.tx.hibernate.cfg.xml" /><br/>  <import resource="jbpm.jpdl.cfg.xml" /><br/>  <import resource="jbpm.bpmn.cfg.xml" /><br/>  <import resource="jbpm.identity.cfg.xml" /><br/>  <!-- Job executor is excluded for running the example test cases. --><br/>  <!-- To enable timers and messages in production use, this should be included. --><br/>  <!--<br/>  <import resource="jbpm.jobexecutor.cfg.xml" /><br/>  --><br/>  <import resource="jbpm.mail.templates.examples.xml" /><br/>  <mail-session><br/>      <mail-server><br/>        <session-properties resource="jbpm.mail.properties" /><br/>        <authenticator auto-wire="true"/><br/>      </mail-server><br/>    </mail-session><br/></jbpm-configuration></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And my authenticator class</p><p>package org.jbpm.examples;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>import javax.mail.Authenticator;<br/>import javax.mail.PasswordAuthentication;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>public class MyAuthenticator extends Authenticator {<br/>     <br/>    protected PasswordAuthentication getPasswordAuthentication() {<br/>        System.err.println("Testing working");<br/>      return new PasswordAuthentication("xxxx", "xxxx");</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Other things are same.</p><p>But wjhen i run this code it didnt work i saw that it is not calling MyAuthenticator</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Please suggest me how can i make this working using this code.</p><p>Thanks and Regards</p><p>Virendra</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/549221#549221">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>