Results 1 to 3 of 3

Thread: Cannot connect via spring integration to GMAIL

  1. #1

    Default Cannot connect via spring integration to GMAIL

    Here are the appcontext.xml config
    <utilroperties id="javaMailPropertiesReceive">

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

    <prop key="mail.imap.socketFactory.fallback">false</prop>

    <prop key="mail.store.protocol">imaps</prop>

    <prop key="mail.debug">true</prop>


    </utilroperties>



    <int-mail:imap-idle-channel-adapter id="gmailReceiveAdapter"

    store-uri="imaps://userid%40gmail.comassword@imap.gmail.com:993/INBOX"

    channel="recieveChannel"
    should-delete-messages="false"

    should-mark-messages-as-read="true"

    auto-startup="true"

    java-mail-properties="javaMailPropertiesReceive"/>

    Getting this debug error log entry
    protocolConnect returning false, host=imap.gmail.com, user=DesktopUserID, password=<null>

    Any thoughts..why protocol error is showing nulls and picking up desktop userid vs the one from the store-uri..and null password is going through..

    thank you

  2. #2
    Join Date
    May 2005
    Posts
    2

    Default

    I have the same issue, how did you fix this?

  3. #3
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    735

    Default

    Hello

    H-m-m...
    Try this one:
    HTML Code:
    <int-mail:imap-idle-channel-adapter id="gmailReceiveAdapter"
          store-uri="imaps://userid:password@imap.gmail.com/INBOX"
          channel="recieveChannel"
          should-delete-messages="false"
          should-mark-messages-as-read="true"
          auto-startup="true"
          java-mail-properties="javaMailPropertiesReceive"/>
    You should provide userId without @gmail.com suffix...

    Good luck!
    Artem Bilan

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
  •