aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes how to find Host Name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "how to find Host Name" Watch "how to find Host Name" New topic
Author

how to find Host Name

Indira Devi
Ranch Hand

Joined: Feb 07, 2001
Posts: 30
Hello everyone,
in my Java Mail program, I want to send mail from my yahoo account but when i give the host name as mail.yahoo.com, it says
"could not connect to SMTP Host: mail.yahoo.com".
What i should give for the host string?
Please enlighten me about this host string.

Thanks in advance
Indira.
------------------
Andrew Shafer
Ranch Hand

Joined: Jan 19, 2001
Posts: 338


I don't think it will be possible for you to use yahoo as the host.
You need to use a SMTP host that you can access.


!_I_Know_Kung_Fu_!
Indira Devi
Ranch Hand

Joined: Feb 07, 2001
Posts: 30
Hello
I actually wanted to write a program using which(given a User Id and a Password of course), the user should be able to send and receive e-mails.
Can anybody give me some code which will help me in this regard?
Please help me as i am in a hurry.
Thanks in advance
Indira.
------------------
Deepak Sharma
Greenhorn

Joined: Mar 09, 2001
Posts: 4
Hello,
I think, I have got the things which you wanted but only it is able to send the messages to the other Mail servers. Right now I am working on the messages receiving through the Java Mail Server.
Indira Devi
Ranch Hand

Joined: Feb 07, 2001
Posts: 30
Hello Deepak
Can i get the Mail Sending code sample from u?
Thanks in advance
Indira.
Angela Lamb
Ranch Hand

Joined: Feb 22, 2001
Posts: 156
The SMTP server for Yahoo is smtp.mail.yahoo.com and the POP3 server (for receiving messages) is pop.mail.yahoo.com
jos xavier
Greenhorn

Joined: Feb 02, 2001
Posts: 14
Hi indira,
you can use the smtp host of vsnl... which is smtp.vsnl.com
I have been successfully able to use this host for my mailing purpose....
you can use the mail demo programs to check it out.
Thanks
Jos xavier
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to find Host Name