File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to find Host Name

 
Indira Devi
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 338
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
 
Indira Devi
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Deepak
Can i get the Mail Sending code sample from u?
Thanks in advance
Indira.
 
Angela Lamb
Ranch Hand
Posts: 156
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic