QUOTE(fsloke @ 21 Jun, 2008 - 09:53 AM)

what should i change for this command:
java com.lotontech.mail.SimpleSender smtp.myISP.net bill@lotontech.com ben@lotontech.com "Hello" "Just to say Hello."
You see in the example: "smt.myISP.net"
So it means to use for smtp: myISP so YOUR Internet Service Provider smtp.
I'll try to explain to you short.
OK you have understood that POP server is to receive/retreive mail. SMTP server is to send mail.
OK my my mail account in Outlook is set up with:
- my ISP POP server which is pop.sympatico.ca.
- my ISP SMTP server which is smtp.sympatico.ca
Now as long as I stay connected from home on my labtop I can send and receice mail.
Now most mail system provider have no problem to let users pick up their mail all over the world.
So I can travel all over the world and pickup my mail from pop.sympatico.ca.
Now most mail system provider do not allow user to connect to their SMTP server if they are not physically connected to their network.
Why ? Because they don't have problem for you to pickup your mail but they don't wamt spamer to use their SMTP server to send millions of spams over the net.
If I want to send millions of spams from home, they can always identify me and tell me to stop or charge me for the service.
So that means that if I go you your place and I plug my laptop into your internet connection I can receive mail from pop.sympatico.ca no problem but smtp.sympatico.ca won't be accessible because I am not physically connected to there network. So in my Outlook mail account I'll have to change my SMTP server to your SMTP server no problem.
Another solution is to buy ($) the service from SMTP provider like www.smtp.com. For a few $ a month they will let you connect to their SMTP server from everywhere in the world. So in January, when I take my 2 weeks vacation in the Carabean I rent their services for a month for about $ 20.00. Then I change my SMTP server in Outlook to www.smtp.com and I can then use my laptop for mail from my hotel room.
Hope this is clearer. Again your ISP must have provided you with an SMTP server.