0

Hello everybody there. I am developing an application for peroject
management. Now i require that any new user has to be created
he should send an email to the adminstrator. and then adminstrator will make that person the user of the portal...

So please help me out of this problem...

<%
 String from=request.getParameter("txtfrom");
 String to="[EMAIL="shahdhruv@cooltoad.com"]shahdhruv@cooltoad.com[/EMAIL]";
 try{
     SmtpClient client = new SmtpClient("Dhruv/10.8.86.82");
     PrintStream message = client.startMessage();
  client.from(from);
     client.to(to);
     message.println("To: " + to);
     message.println("Subject:  Sending email from JSP!");
     message.println("This was sent from a JSP page!");
     message.println();
     message.println("Cool beans! :-)");
     message.println();     
     message.println();
     client.closeServer();
  }
  catch (IOException e){ 
     System.out.println("ERROR SENDING EMAIL:"+e);
  }
%>

if i write this code and execute it then i am getting UnknownhostException....

Thanks...

2
Contributors
1
Reply
5
Views
10 Years
Discussion Span
Last Post by peter_budo
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.