aspose file tools
The moose likes JSF and the fly likes how to send browser display HTML page as HTML Email using JSF    Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "how to send browser display HTML page as HTML Email using JSF    " Watch "how to send browser display HTML page as HTML Email using JSF    " New topic
Author

how to send browser display HTML page as HTML Email using JSF

Saman Perera
Ranch Hand

Joined: Jul 15, 2003
Posts: 61
Hi all

i need to send a whole jsf rendered page as a html page.... . say theres a page which hav few links , images etc & theres a send email button at the end of the page. once the user clicks on the button the whole page should appear in another window which hav from,to, subject line + the html body of tht earlier page & once he clicks the send button it should send to the sender & the receiver should see the email a s a html email.where you can click on the links,images showin etc...


Thanks
Saman
Pierre Henry
Ranch Hand

Joined: Oct 01, 2003
Posts: 31
Saman,

You could use the JavaMail api here to access a mail server

There is a link to download the api+samples source codes very helpful.


"A good method shouldn't bypass one screen long"<br />"genius is the knowledge left when one has forgotten everything"
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Hi Saman,

Here is a sample code for this..

Regards
Ajit Kanada
[ August 24, 2007: Message edited by: Ajit Kanada ]

Thankx
Ajit
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to send browser display HTML page as HTML Email using JSF
 
Similar Threads
How to send inline images in body of an email
Web interface to delete folder
Copy page content in OUTLOOK body
Send file as attachment
print and email functionality on my jsp page