Menu

configuration of send mail

Help
2011-03-01
2014-02-02
  • Robert Grave

    Robert Grave - 2011-03-01

    Hi,

    I'm trying to install the "Express" application.
    I've installed it to the "ROOT" folder of my TomCat installation

    I've configured the email part like:
       mail.host=smtp.1und1.de
       mail.port=25
       mail.authenticate=true
       mail.username=express@mydomain.xx
       mail.password=mypassword
       mail.from=express@mydomain.xx

    But I'm getting the following error message after pressing "Register":
       springframework.remoting.RemoteAccessException : We are experiencing problems with our mail gateway.
       Please try to register again later. Your details have not been saved.

    I tried to use the email Adress in outlook and it works, also telnet on port 25 to the smtp host works fine.

    I did not find a logging regarding this error.

    I'm lost at this point.

    Best Regards
    Robert

     
  • Anonymous

    Anonymous - 2011-03-09

    Hi. I'm having the same problem. I put the project to my TomCat ROOT directory. When I try to sign up, I've the same error msg saying "springframework.remoting.RemoteAccessException : We are experiencing problems with our mail gateway. Please try to register again later. Your details have not been saved."
    Do you guys have had this problem and solved this out?
    I'm using gmail as a smtp server and the settings are:
    mail.host=smtp.gmail.com
    mail.port=465
    mail.authenticate=true
    mail.username=myusername@gmail.com
    mail.password=mypassword
    mail.from=myusername@gmail.com
    Also, as I saw in another post, I uncommented 3 lines of code in another xml, called applicationContextNotification.xml.
    So where's the problem?
    Oh, BTW, I don't know much about SMTP. Should I install any SMTP server, I thought gmail.com would work without any other programs.
    Right now, I'm using Tomcat, Postgre and no other software for this project management tool. Please, help :D

     
  • adam

    adam - 2011-03-09

    I regularly use gmail as my mail provider for Express, it is a little slow but it works fine. The only thing I can see in your config that is different to mine is that I use my username without the @gmail.com. The applicationConfigurationNotification.xml should look like this:

    <bean id="mailer" class="org.springframework.mail.javamail.JavaMailSenderImpl"
             p:host="${mail.host}" p:username="${mail.username}" p:password="${mail.password}"
             p:port="${mail.port}">
          <property name="javaMailProperties">
             <props>
                <prop key="mail.smtp.localhost">localhost</prop>
                <prop key="mail.smtp.auth">${mail.authenticate}</prop>
                <prop key="mail.smtp.starttls.enable">true</prop>
                <prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>
                <prop key="mail.smtp.socketFactory.port">${mail.port}</prop>
             </props>
          </property>
       </bean>
    
     
  • Robert Grave

    Robert Grave - 2011-03-15

    For our provider (1und1) the username is usually the same like the email adress.
    So it should be correct. Does the code support that, or is there a filter on it?

    I tried a lot, but nothing had helped.
    My applicationConfigurationNotification.xml looks exact like yours.

     
  • adam

    adam - 2011-03-15

    Okay, sorry, I should have forced the second question onto a different thread. The answer that I posted was for gmail settings which are a little unusual because they use tls and have unusual port settings. For normal mail providers the applicationConfigurationNotification.xml should look like this:

    <bean id="mailer" class="org.springframework.mail.javamail.JavaMailSenderImpl"
             p:host="${mail.host}" p:username="${mail.username}" p:password="${mail.password}"
             p:port="${mail.port}">
          <property name="javaMailProperties">
             <props>
                <prop key="mail.smtp.localhost">localhost</prop>
                <prop key="mail.smtp.auth">${mail.authenticate}</prop>
                <!--<prop key="mail.smtp.starttls.enable">true</prop>-->
                <!--<prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>-->
                <!--<prop key="mail.smtp.socketFactory.port">${mail.port}</prop>-->
             </props>
          </property>
       </bean>
    

    If you are still having problems then you might want to check if your mail provider requires authentication and set it to false in express if it doesn't or look at whether they allow mail to be sent from addresses that they don't manage (i.e. maybe they are disallowing the sender express@xx.xx because they have no express user account) that latter one is a bit of a long shot.

    I can only assure you that if you get the settings correct for your mail provider it will work, there are thousands of instances of express running out there (not to mention the many that I have installed and use). I am looking at making email notifications option in the next release as it seems to be the biggest single hurdle for new installs.

    Cheers,

    Adam

     
  • Gary Schultz

    Gary Schultz - 2011-04-23

    I'm trying gmail for SMTP and continue to get the send failed error. I have tried the gmail settings in this thread and tried various other settings in applicationConfigurationNotification.xml .

    gmail settings look like:

    ### Mail and notification configuration details ###

    mail.host=smtp.gmail.com

    mail.port=465

    mail.authenticate=true

    mail.username=gmailuser
    mail.password=password
    mail.from=gmailuser@gmail.com

       <bean id="mailer" class="org.springframework.mail.javamail.JavaMailSenderImpl"

             p:host="${mail.host}" p:username="${mail.username}" p:password="${mail.password}"

             p:port="${mail.port}">

          <property name="javaMailProperties">

             <props>

                <prop key="mail.smtp.localhost">localhost</prop>

                <prop key="mail.smtp.auth">${mail.authenticate}</prop>

                <prop key="mail.smtp.starttls.enable">true</prop>

                <prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>

                <prop key="mail.smtp.socketFactory.port">${mail.port}</prop>

             </props>

          </property>

       </bean>

    Regardless of how I configure the information in applicationConfigurationNotification.xml I still get the error.

     
  • Sonny Benavides

    Sonny Benavides - 2014-02-02

    Hi Gary,

    Try FakeSMTP or any SMTP Server.

    I have the AgileExpress software working correctly with Derby 10 (JavaDB), Tomcat 6.0.29 and a Dummy SMTP Server. Right now, I'm trying to deploy it on Weblogic. For more details, you can contact to me.

    Greetings,
    Sonny

     

    Last edit: Sonny Benavides 2014-02-02

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.