aspose file tools*
The moose likes JSF and the fly likes Auto send an email Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Auto send an email" Watch "Auto send an email" New topic
Author

Auto send an email

satyanarayana bnv
Greenhorn

Joined: Aug 07, 2008
Posts: 12
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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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.


Ping & DNS - my free Android networking tools app
satyanarayana bnv
Greenhorn

Joined: Aug 07, 2008
Posts: 12
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

Joined: May 09, 2002
Posts: 435
Aspirin would be found here now

https://github.com/masukomi/aspirin


the java.net link is not working.


Maki Jav


Help gets you when you need it!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Auto send an email