Hi Sachin,
I extracted the below code from the production system. It is working frie
from months,
I really have no time to analyze the problem.
Just try to check the profile settings.
Go and check at start->Settings->ControlPanel->mail->...
Code:
...
InternetAddress addrFrom = new
InternetAddress("[EMAIL PROTECTED]");
try { addrFrom.setPersonal("Central Repository"); } //
check for your profile settings!!
catch(UnsupportedEncodingException ue) {};
InternetAddress[] addrRe ={addrFrom};
MimeMessage mailMsg = new MimeMessage(session);
try { mailMsg.setReplyTo(addrRe); mailMsg.setFrom(addrFrom); }
catch (MessagingException m){System.err.println("error in set mail
message replyto and from address");};
...
Regards
Naidu
-----Original Message-----
From: sachin [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 18, 2000 11:29 AM
To: [EMAIL PROTECTED]
Subject: mail sending
i am a filnal year computer enginnering student and working on a project
tittled portal development.
i need to send mails for alerts,and some other things.
using java mail i have wrirtten a program for that but i dont know what to
give as mail host name.
the mail host name that i have put right now is "bom7.vsnl.net.in" but i get
the error "cannot connect to host".
vsnl is my interner service provider and my username is of the form
[EMAIL PROTECTED]
i will be really thankful i somebody can help me
thanking in anticipation
sachin
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html