• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Auto send an email

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic