How can I determine what is real name for mail server when I have 'servername.com'
Main Topics
Browse All TopicsI tried to send a mail using socket to yahoo mail account.
But when I try to telnet to yahoo.com port 25 it fails.
Whats the catch ?
How can i know user's mail server from username@server.com
I tought that it must be server.com & port 25
What Is wrong ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I have installed javamail 1.2 is it possible to find some example which sends mail without me to have think how and why.
I found some examples but they ask me to provide smtp server.
And that brings me back to how to find one with servername.com
I try to use nslookup but results i got back for yahoo.com dont have a port 25 to connect !
Doesn't your hosting service provide an email server (smtp server) to you?
There are some free smtp servers out there:
http://members.tripod.co.j
[though I am not sure if they work anymore]
CJ
Proton, yahoo has got a pop server and smtp server running. as they don't want any mails going out from their smtp server without proper
verification, they have put a restriction that u shud log on to their pop server first, then only u will have access to their smtp server.
yahoo pop server - pop.mail.yahoo.com
yahoo smtp server - smtp.mail.yahoo.com
u can use the below given code to test out the same. pls note that this is juz a test code and itz written specifically for yahoo(it tries to connect to pop, b4 tryin to send a maiil thru smtp).
compile the code and make sure that u'r classpath is pointin to mail.jar and activation.jar(which comes as part of javamail 1.2 and jaf) and u shud have an account with yahoo :-)
invoke the code as given below,
java SendMessageExample pop.mail.yahoo.com smtp.mail.yahoo.com <u'r yahoo username> <u'r yahoo password> <from mail address> <to mail address>
import java.io.*;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class SendMessageExample {
public static void main (String args[]) throws Exception {
if (args.length != 6) {
System.err.println("Usage is : java SendMessageExample <pop-Hostname> <smtp-Hostname> <username> <password> <fromAddress> <toAddress>");
return;
}
String pop3Host = args[0];
String smtpHost = args[1];
String username = args[2];
String password = args[3];
String from = args[4];
String to = args[5];
Properties props = new Properties();
props.put("mail.smtp.host"
Session session = Session.getInstance(props,
Store store = session.getStore("pop3");
store.connect(pop3Host, username, password);
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Messa
message.setSubject("Hello JavaMail");
message.setText("Welcome to JavaMail");
Transport.send(message);
store.close();
}
}
hth
kewl
P.S: please note that this is juz test quality code :-)
Ok people You are great but the calvinrsmith is on the right track.
I found DNSJAVA as calvinrsmith suggested above and i vill give it a try. Thank You all.
for kewl00_2000 thanks for example but if I'm not wrong I still need to know exact real name of smtp server. And that brings me back on begininning. My goal is not only yahoo i mentioned it just beacouse it vas my first problem which i encounterd in this area.
Regards.
Business Accounts
Answer for Membership
by: cheekycjPosted on 2000-12-22 at 09:49:15ID: 41048
Two things..
First: Yahoo requires you to POP before you can SMTP. So you can't use Yahoo as an smtp server on your website.
Second: Just because the email address is @yahoo.com doesn't mean the server is yahoo.com .. I believe Yahoo's email server is mail.yahoo.com (or pop.mail.yahoo.com and smtp.mail.yahoo.com)
CJ