PDA

View Full Version : How to send an email to user BY USING jsp PAGES


klerajesh
08-01-2007, 07:49 AM
Hi

Question: I need to acknowledge the users through an email for those who registered in my website ....?

Steps i fallowed :
I have developed a JSP code for sending an email by using some of standard functions like transport and etc.....In the program itself ,i am not getting how to set properties of SMTP server .
Look at the sample code below to setup properties of SMTP server:

/* Setting Properties for STMP host */
props = System.getProperties();
props.put("mail.smtp.host", "smtp.mail.yahoo.com");

please let me know .what should i use in the place of 1st and 2 nd parameter
............................
I installed smtp server ,let me what are extra configaration required to set up in SMTP server ......Thank you