dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: ip address of SMTP/POP for gmail

  1. #1
    Join Date
    Mar 2006
    Posts
    13

    ip address of SMTP/POP for gmail

    hello,
    Someone told me that I can access Gmail a/c through my java application.
    But tell me where i got gmails ip address for stp/pop.
    I doing such a application for my company. Do I need to know the ip address
    of my company's ip address of SMTP/POP.
    Plz reply me immerdiately.
    Bye
    Shilpa_oct23

  2. #2
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    1,194

    Re: ip address of SMTP/POP for gmail

    POP address is: pop.gmail.com (64.233.183.109) port number 995
    SMTP address is: smtp.gmail.com (66.249.93.111) port number 465
    Please don't forget to rate users who helped you!

  3. #3
    Join Date
    Sep 2004
    Location
    New Delhi, India
    Posts
    640

    Re: ip address of SMTP/POP for gmail

    I try this:
    Code:
    telnet smtp.gmail.com 25 // works
    telnet smtp.gmail.com 465 // doesn't work
    Also, the POP3 server doesn't show any welcome message nor does it take any commands (at both ports 110 and 995). Any ideas?

  4. #4
    Join Date
    Sep 2004
    Location
    New Delhi, India
    Posts
    640

    Re: ip address of SMTP/POP for gmail

    Well, I have been playing with the SMTP and POP3 protocols. This is what I have been doing:
    Code:
    telnet smtp.mail.yahoo.com 25
    //I get an OK message from sever after I connect
    EHLO server
    MAIL FROM:myid@yahoo.com
    //Server asks for authentication and after that connection lost
    After some googling I found that you have to authenticate yourself to the yahoo server before you can send a mail. Can anyone tell how do I authenticate myself?? Also at one place I read that yahoo needs you to log in using POP3 first and after that only you can send mail through SMTP. But, as we all now yahoo's POP3 access is available for paid accounts only so I cannt log in. So, how do I send mail using yahoo?

    After yahoo I tried with hotmail.
    Code:
    telnet mail.pop3hot.com 25
    //Get an OK message
    EHLO server
    MAIL FROM:myid@hotmail.com
    //Server says OK
    RCPT TO:<myanotherid@hotmail.com>
    //Server says OK
    DATA
    //Server asks to type the message
    Hi there!
    
    .
    
    //Server says message queued for sending
    QUIT
    Now firstly hotmail doesn't ask for any authentication so cann't one send message as some other user? I tried the above commands but at times it would say "Unvalid Command" for "RCPT TO:<myanotherid@hotmail.com>" and after few tries it would accept that. The behaviour is not at all consistent, also though when it said "Message queued for sending" I never recieved the message except one. So I tried many times but got the message only once and I dont know what special I did that it went .

    Well, if I cann't make it work myself them how can I say that my code will successfully send the mail?
    "I rather not play football than wear Nerrazzuri shirt" - Paolo Maldini
    FORZA MILAN!!!

  5. #5
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    1,194

    Re: ip address of SMTP/POP for gmail

    I got those port numbers from the gmail site, so I am also wondering why the don't work.
    Maybe telnet is not the right program to test, because sometimes when I use telnet and get a connection it clears the screen and you can't enter anything you just see the cursor.
    As far as your attempt with port 25 is concerned: It could be that the server has a short timeout when it asks for authentication and so you can only login automatically because you are too slow typing the login. Another reason could be that you have to authenticate before you type MAILFROM.
    Please don't forget to rate users who helped you!

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)