• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto send an email

 
satyanarayana bnv
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSF application when a new user registers I want to send an auto email to the admin. I have tried using mailto url but couldn't succeed.
Can anyone please help me...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

A mailto URL causes a mail window to be opened on the client, which is not really what you want.
You should write the logic to send the mail as part of the server-side code. The relevant Java API for sending mail is called JavaMail; you'll need a mail server to use it (or use a library like Aspirin -on dev.java.net- that can send email without a server). An introduction to JavaMail can be found here.
 
satyanarayana bnv
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
Welcome to JavaRanch.

A mailto URL causes a mail window to be opened on the client, which is not really what you want.
You should write the logic to send the mail as part of the server-side code. The relevant Java API for sending mail is called JavaMail; you'll need a mail server to use it (or use a library like Aspirin -on dev.java.net- that can send email without a server). An introduction to JavaMail can be found here.
 
Maki Jav
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aspirin would be found here now

https://github.com/masukomi/aspirin


the java.net link is not working.


Maki Jav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic