How to connect to smtp server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newlearner
    New Member
    • May 2007
    • 67

    How to connect to smtp server?

    hi,
    I am new to java networking, i tried to send a mail from my java program,in the code i set debug to true

    i get the following error

    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG SMTP: trying to connect to host "smtp.gmail.com ", port 465, isSSL false

    i have no idea why this is coming even after i set the proper server name and the port.

    any suggestion is most welcome, Eagerly looking for a reply.

    Thanks a lot in advance
  • newlearner
    New Member
    • May 2007
    • 67

    #2
    can any one give some idea on this, I also tried by setting the auth as true and setting up the authentication details

    Comment

    • newlearner
      New Member
      • May 2007
      • 67

      #3
      i fixed the issue, it was due to the firewall in my network

      Comment

      Working...