Finding SMTP host and port knowing the e-mail address using JAVA API

Discussion in 'Java' started by Andreea, Apr 21, 2012.

  1. Andreea

    Andreea

    Joined:
    Apr 21, 2012
    Messages:
    1
    0down votefavorite

    share [g+]share [fb]share [tw]



    I have a question and maybe you can help me. I made a simple application to send e-mails using Java API.

    And I need to know if:

    Is there any way to find out the SMTP host knowing the e-mail address of the one who will login to send an e-mail? And also the port?

    For example, if the sender's e-mail address is sender@gmail.com , the SMTP host is smtp.gmail.com and the port 465. If the sender's e-mail address is sender@yahoo.com, the SMTP host is smtp.yahoomail.com and the port 25.

    Supposing I don't know this, is there any way to find this information using Java API classes? :)

    Please note that I'm new in both JAVA and JAVA Api.. :)

    Thanks in advance,

    Andreea
    Andreea, Apr 21, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexander N. Spitzer
    Replies:
    21
    Views:
    1,753
    Randolf Richardson
    Aug 16, 2004
  2. matthewjbarr@gmail.com

    Sending SMTP mail when SMTP server is unavailable

    matthewjbarr@gmail.com, Jan 24, 2006, in forum: Java
    Replies:
    3
    Views:
    1,053
    Roedy Green
    Jan 24, 2006
  3. Alex Hunsley
    Replies:
    4
    Views:
    3,418
    Tim Williams (gmail)
    Jun 29, 2004
  4. Raaijmakers, Vincent \(GE Infrastructure\)

    RE: sending of mail (smtp) - connection refused - but smtp serveris running!

    Raaijmakers, Vincent \(GE Infrastructure\), Jun 29, 2004, in forum: Python
    Replies:
    0
    Views:
    866
    Raaijmakers, Vincent \(GE Infrastructure\)
    Jun 29, 2004
  5. Timothy Grant
    Replies:
    5
    Views:
    406
    Timothy Grant
    Aug 6, 2008
Loading...

Share This Page