Are you able to send mails to other ids? >From the error it is clrealy understood that the program is unable to make SMTP >connection. You give the local ip address of the SMTP server if both the machine on >which program is running and the SMTP server is inside firewall. If you are giving >the external IP address then firewall needs to be opened for port 25.
-----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 ==========================================================================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
