Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sending email through jsp  RSS feed

 
Agnit Chatterjee
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have to use a virtual ftp server to be able to send email through JSP?
Would you please suggest me the software and code to send email through JSP??
Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For sending mail you don't need an FTP server, you need an SMTP server. You would access it through the JavaMail API; the JavaEnterpriseEditionFaq has lots of information about that. If you don't have an SMTP server yet, and can't install or access one, you can use the embedded Aspirin server (which is also mentioned on that page).
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And sending mails through a JSP is a bad practice, You should be doing this in your controller/servlet probably.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!