Announcement Announcement Module
Collapse
No announcement yet.
Cannot connect via spring integration to GMAIL Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.com[email protected]: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
    I have the same issue, how did you fix this?

    Comment


    • #3
      Hello

      H-m-m...
      Try this one:
      HTML Code:
      <int-mail:imap-idle-channel-adapter id="gmailReceiveAdapter"
            store-uri="imaps://userid:[email protected]/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

      Comment

      Working...
      X