Results 1 to 3 of 3

Thread: Properly setting the JavaMailProperties on a MailSenderImpl

  1. #1
    Join Date
    Nov 2007
    Posts
    177

    Default Properly setting the JavaMailProperties on a MailSenderImpl

    Hello,
    I am desperately trying to set the mail.smtp.timeout on a MailSenderImpl.
    Here is what I undertook:
    Code:
        <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
            <property name="host" value="${mail.server}"/>
            <property name="port" value="${mail.port}"/>
            <property name="javaMailProperties">
                <props>
                    <prop key="mail.smtp.connectiontimeout">1000</prop>    
                    <prop key="mail.smtp.timeout">1000</prop>    
                </props>    
            </property>
        </bean>
    The javaMailProperties seem to be completely ignored by my Java Mail implementation. Can anyone please help?
    Thanks in advance,
    Julien.

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    HEllo

    The javaMailProperties seem to be completely ignored by my Java Mail implementation. Can anyone please help?
    How did you get such conclusion?
    Are you receiving an exception? If yes, post the complete error stack trace
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    Nov 2007
    Posts
    177

    Default

    Sorry. It turned out the problem was elsewhere. The properties are indeed taken into account.
    Regards,
    Julien.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •