This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes javascript code who can import/export data from Outlook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript code who can import/export data from Outlook" Watch "javascript code who can import/export data from Outlook" New topic
Author

javascript code who can import/export data from Outlook

Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
Hi All,

I have a requirement.I got a HTML/JSP page. When a button is pressed, an email window (native to the client machine e.g. OUTLOOK) will be displayed as a popup. In that email window I have to populate whatever the data in the parent page.

Please anybody help me.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Here are your options to open up the Outlook mail client and add the data:

http://www.ianr.unl.edu/internet/mailto.html

Eric
Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
But in this link I can't find, how to paste the content of the parent HTML page to the body of the mail. I can only find the code to add some text only. Suggestions with code will be most welcome.

Thanks
Ingoba
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Ingoba Ningthoujam:
But in this link I can't find, how to paste the content of the parent HTML page to the body of the mail. I can only find the code to add some text only. Suggestions with code will be most welcome.

Thanks
Ingoba


Unless you can get the contents of the page in a string and apply it to the body element of the mailto format, you can't.


GenRocket - Experts at Building Test Data
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Full-blown HTML mail is best generated on the server side using the JavaMail API.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
That I know. But how to pop up the outlook page from Java Mail with the data(HTML data with CSS) in the body?

Please help.
Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
Anybody please help. I can't find any solution for this till now.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javascript code who can import/export data from Outlook
 
Similar Threads
Send Mail
Copy page content in OUTLOOK body
Does mailto open only outlook or default mail client
connection of JSP to outlook
Saving mail from outlook with attachment with Java