Meaningless Drivel is fun!
The moose likes Other JSE/JEE APIs and the fly likes Emailing a web page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Emailing a web page" Watch "Emailing a web page" New topic

Emailing a web page

Sri chay

Joined: Aug 07, 2008
Posts: 3
I have to email a web page content which includes text and images. Reading the contents from the url using UrlConnectionReader doesn't work in this case as the url is not the exact url of the page I want to email. I have to email the results on the page after a javascript is run. So,i can't go that route.

I am able to dynamically change strings (like names, emails, etc) and inject into the email content. The problem is with the email body as it is lengthy. I don't want to hardcode html tags into the message body. I should be able to dynamically print whatever is on the page like printing a web page.

Any ideas are much appreciated!

It is sorta covered in the JavaRanch Style Guide.
subject: Emailing a web page
It's not a secret anymore!