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...
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.
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.