title: How to set email and data configuration in activiti-explorer-5.22
body: <p>I just changed in activiti-custom-context.xml file and after changes also i am not able to send the email to the users  and  i have changed the database properties also but after relaunch server ,my server is not connected to the database ,which I provided.</p>
  
  <pre><code>&lt;class="org.springframework.jdbc.datasource.SimpleDriverDataSource"&gt;
          &lt;property name="driverClass" value="com.mysql.jdbc.Driver" /&gt;
          &lt;property name="url" value="jdbc:mysql://localhost:3306/explorer" /&gt;
          &lt;property name="username" value="root" /&gt;
          &lt;property name="passw`enter code here`ord" value="root" /&gt;
      &lt;/bean&gt; --&gt; 
  
      &lt;bean id="transactionManager"
          class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&gt;
          &lt;property name="dataSource" ref="dataSource" /&gt;
      &lt;/bean&gt;
  
  
      &lt;/property&gt;
      &lt;property name="mailServerUseTLS" value="true" /&gt;&lt;!--This is important if you use Gmail as your hoster --&gt;
      &lt;property name="mailServerHost" value="smtp.gmail.com" /&gt;
      &lt;property name="mailServerPort" value="587" /&gt;
      &lt;property name="mailServerUsername" value="my@host.com" /&gt;
      &lt;property name="mailServerPassword" value="hostpassword"/&gt;
         &lt;/bean&gt;
  
      &lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&gt;
          &lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /&gt;
      &lt;bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /&gt;
      &lt;bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /&gt;
      &lt;bean id="formService" factory-bean="processEngine" factory-method="getFormService" /&gt;
      &lt;bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /&gt;
      &lt;bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /&gt;
      &lt;bean id="identityService" factory-bean="processEngine" factory-method="getIdentityService" /&gt;  
  
  &lt;/beans&gt;
  </code></pre>