• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript code who can import/export data from Outlook

 
Ingoba Ningthoujam
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Full-blown HTML mail is best generated on the server side using the JavaMail API.
 
Ingoba Ningthoujam
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody please help. I can't find any solution for this till now.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic