Hi Hilmi,
We haven't don this here but you should be able to do it - you will need to edit a file called mail-sender.xml. To test it out try the following:
1. shutdown tomcat
2. Open the file: {CATALINA_HOME}\webapps\ir_plus\WEB-INF\mail-sender.xml where {CATALINA_HOME} is the location where you installed tomcat.
3. In mail-sender.xml around line 40 you should see code like the following:
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="${mail.sender.host}" />
<property name="port" value="${mail.sender.port}"/>
<!-- uncomment for ssl
<property name="session" ref="mailSession" />
-->
</bean>
Change it to the following
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="${mail.sender.host}" />
<property name="port" value="${mail.sender.port}"/>
<property name="username" value="YOUR_USERNAME"/>
<property name="password" value="YOUR_PASSWORD"/>
<!-- uncomment for ssl
<property name="session" ref="mailSession" />
-->
</bean>
Replace YOUR_USERNAME and YOUR_PASSWORD with the username and password for gmail.
4. Re-start tomcat
This should allow you to connect - let me know how it goes.
-Nate