Email Setting

6 views
Skip to first unread message

Hilmi

unread,
Jan 15, 2012, 7:20:37 AM1/15/12
to irplus
Hi,

I'm just testing out IR+. I am having difficulty getting the email
notification to work. In DSpace there are configuration settings like
mail.server.username & mail.server.password where administrator can
choose a specific email address from which the notification will be
sent. How can I configure this in IR+? I thought that there should be
somewhere I can set the username & password. Am I missing something
here or does IR+ have a different workflow?

p.s.:My institution is using GMail (Google Apps) for its email service

Nate Sarr

unread,
Jan 16, 2012, 10:30:10 AM1/16/12
to irp...@googlegroups.com
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


--
You received this message because you are subscribed to the Google Groups "irplus" group.
To post to this group, send email to irp...@googlegroups.com.
To unsubscribe from this group, send email to irplus+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/irplus?hl=en.


Reply all
Reply to author
Forward
0 new messages