This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm a beginner to java. I have written a program that send out email. It compile fine but when i try to run it , it gives me the following exception
This is my program:
Could someone plz help me out with this or point me to the right direction. My ISP is rogers hi speed. They told me hostname of SMTP server was "smtp". When i try "ping smtp" command in DOS. I get the following
I have no idea what that means. Any help or suggestions would be greatly appreciated. THanks
Are you inside a firewall, where your IP gets NAT'd? Also some smtp servers are behind a DMZ which will not allow you to make ICMP requests to it. You may have to check your mail settings in your mail client, ie outlook, or pine or whatever you are using for pop mail. Double check the smtp server settings. It doesn't make sense that the host name would just be "smtp". Lemme do some investigation on the rogers domain and see what it is supposed to be. And according to your error it is still pointing to the smtp server "localhost". This is not good. as you can see:
Jonty, see if this link refers to your situation. I don't know if you are in london or not. Rogers email upgrades Because this mail server : smtp.rogers.com is totally down. You have the correct domain name and the correct smtp server. Your pop server is called pop and your smtp server is called smtp. These are quite ambigous names for a major high speed internet access ISP, but it's what they use. [ February 18, 2004: Message edited by: steve.Wysocki ] [ February 18, 2004: Message edited by: steve.Wysocki ]
Joined: Feb 12, 2004
Hey Steve, Thanks for the quick response. I'm not behind any firewall. I'm in toronto area so that doesn't affect me. I have double checked my setting and the username and password matches. I don't know what else to do. Any other suggestions??..THanks for your input..