Hi For ur own machine u should use localhost as the machine name not the ip address. Hope it helps Naveen Gupta
-----Original Message----- From: Kesav, Ramesh [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 2:11 PM To: [EMAIL PROTECTED] Subject: javamail - offtopic but urgent Hi all, when i try to send an email to me itself i get the following exception javax.mail.MessagingException: Could not connect to SMTP host: <ip address>, port: 25; Properties prop = new Properties(); prop.put("mail.smtp.host", hostName); where hostName is <ip address> i know this is offtopic but if someone can let me know where i am wrong , i would appreciate it. Regards Ramesh Kesavanarayanan [EMAIL PROTECTED] Off: 91-44-8113801 ext 2333 Res:91-44-2265360 Mob : 91-98412-73573 =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com