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

Joined
Apr 21, 2012
Messages
1
Reaction score
0
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 (e-mail address removed) , the SMTP host is smtp.gmail.com and the port 465. If the sender's e-mail address is (e-mail address removed), 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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top