•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 397,814 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,579 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 2890 | Replies: 1
![]() |
•
•
Join Date: Sep 2006
Posts: 17
Reputation:
Rep Power: 2
Solved Threads: 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...
if i write this code and execute it then i am getting UnknownhostException....
Thanks...
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="shahdhruv@cooltoad.com";
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);
}
%>Thanks...
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,183
Reputation:
Rep Power: 10
Solved Threads: 265
you may want to check this post
http://www.daniweb.com/techtalkforums/thread43996.html
http://www.daniweb.com/techtalkforums/thread43996.html
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
- Very Very Urgent...Need Code for Calculating Execution Time For Jsp Page (JSP)
- sending mail from jsp page (JSP)
- how to send email using jsp (JSP)
- email sending from a jsp page after submit button (JSP)
- Can't send email (Windows NT / 2000 / XP / 2003)
- I think I'm going to cry... (JSP)
- can not send email and cannot send file through instant messaging (Windows NT / 2000 / XP / 2003)
Other Threads in the JSP Forum
- Previous Thread: plz tell me how to solve problem
- Next Thread: Another mysql problem



Linear Mode