• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send an email thro' Jsp

 
rejieve alexander
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could someone help me ,by telling me as to how to send an
email using Jsp .Like thro' Asp, you could set the mail object
thro' CDonts.NewMail etc:
Please send me a sample code if possible...
Thank you.
 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
you have to use sun.stmpclient class to sen emails through
jsp
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This tip is from JGuru JavaMail Faq.

regds
maha anna
 
rejieve alexander
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks maha anna,
But could you tell me as to what does mail.xxxx.xxx means in,
SmtpClient client = new SmtpClient("mail.xxxxx.xxx");
and ,where i could test the email code .Is there any server available for testing the code?
Thanks again maha anna for u'r help.
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex,
mail.***.*** means a smtp mail server name. example mail.yahoo.com from where your mail will be sent.
regds
maha anna
 
rejieve alexander
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'Thank You, mahannna and sorry for a late reply...the jsp mail works.
'Bye for now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic