dipali doke

Greenhorn
+ Follow
since May 20, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dipali doke

Hi,
I am doing project in Java "PC To Mobile SMS Service".
Here I am making connection using SmtpClient API.
I need to connect to any SMTP server of Hotmail or yahoo or rediff
to forward my request to which will further provide it to
ideacellular.net

Code is like this: Just see that SmtpClient().What IP address should be
specified


boolean SendSMS(PrintWriter out,String mobileno, String message)
{
boolean success = false;
PrintStream ps = null;
String s1 = null;
SmtpClient sendmail = null; // Creating object of SmtpClient

out.println("<br>Sending SMS TO " + mobileno + "@ideacellular.net");
out.println("<br>Message is : " + message);
try
{
// OPEN SMTP CONNECTION.
out.println("<br>Trying to establish connection with server.");

sendmail = new SmtpClient("219.65.84.138");
// Which IP address I should provide here which will do relaying
// of request.
sendmail.from("agccomp@vsnl.net");
sendmail.to(mobileno + "@ideacellular.net");
//GET PRINTSTREAM

if (sendmail.serverIsOpen())
{
ps = sendmail.startMessage();
}
else
{
out.println("Server is not open") ;
}
}//try
catch(Exception e)
{
e.printStackTrace();
e.printStackTrace(out);
return false;
}//catch

try
{
//
ps.println(message);
ps.flush();
ps.close();
sendmail.closeServer();
}//try
catch(Exception e)
{
out.println("<br>Can not close the server.");
e.printStackTrace();
return false;
}//catch
return true;
}
}


If any body knows any SMTP server address or link for that please let
me know.
It's urgent!

With regards,
Dipali.
Thanks Ajith. I was confused. I will try checking erata.
does map interface extend collection interface? in RHE it says List, Set and a Map extend Collection interface but in some mock exams it says map does not extend Collection interface. Please could someone help on this?
GridbagLayout is explained very nicely in Bill Brodgen's Java Cram book.
Congrats!!! I am planning to give exams today. could you please let us know how was the exams relative to the mock exams... thanks..

Originally posted by Udayan:
Hi everybody!This afternoon I gave the SCJP Exam and I passed
with 97%.The exam was not really tough.The exam mainly concentrates on the fundamentals and anybody who knows his cup of Java will get a good score.There were some really ambiguous questions.But you have to figure out in the context of the question.
Now let me give u my introduction.I am a 22 year old
electronics engineer from Bombay,India.After passing
out from college in 1999 I took up Java which I have been
studying from the last 8 months.
I would like to thank all of the people who made this
possible for me,and especially Javaranch.
I am grateful to all the people who replied to my questions and
cleared away the doubts(too numerous to be mentioned here).
I will continue coming to Javaranch and helping
out people the same way they helped me when I was
in need.
Best of Luck to everybody who is giving the exam this week
(I am taking 1 week's rest.Will be back soon).
Go for it cowboys!!!