![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2006
Posts: 7
Rep Power: 0
![]() |
Copy text of webpage and paste into new email?
Hi all,
How would I go about creating a button to copy the text of a webpage and insert it into a new Outlook email? I would like to put this button on several of my web pages so I can easily forward the text of these webpages to people who request it. If anyone knows of a webpage with this button, it would be particularly helpful. Thanks! JTM |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
Is this a basic html webpage or jsp?
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Sep 2006
Posts: 7
Rep Power: 0
![]() |
Thanks for the reply. It's a jsp page.
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
Well what I think what you want to do is lookinto the java mail api. http://java.sun.com/products/javamail/. As long as you can get your outgoing mail server, you can easily create and send messages to any recipients. Here is the faq. http://java.sun.com/products/javamail/FAQ.html
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Sep 2006
Posts: 7
Rep Power: 0
![]() |
I don't think that's quite what I'm looking for. I need a button on a webpage that will do the following steps:
1. Select all the text (ctrl-a) 2. Copy the text to the clipboard or temp space (ctrl-c) 3. Open a new Outlook email 4. Paste the text into the body of the new message Is this possible? Thanks! -JTM |
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
This functionality could potentially be created as a Internet Explorer plugin or as a Firefox extension, but it would have to be an alteration to the browser on the client machine. Due to security issues, this sort of functionality is not available through server-side code. Websites can only interact with users in a deliberately limited fashion.
What one can do, however, is to send a mail from the server that contains the contents of the website. Another option is to get a macro-recording program and bind a series of commands (such as Ctrl-C, open outlook, new mail, Ctrl-V) to a hotkey of some description. I don't know of any program that can do this on Windows, but presumably there should be a way. |
|
|
|
|
|
#7 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
You can do it in a hyperlink, though it's not pretty and I'm not sure it's totally standards-compliant.
<a href="mailto:me@example.org?subject=Meep.&body=Meep is a funny word.">Mail someone else.</a> |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Sep 2006
Posts: 7
Rep Power: 0
![]() |
a href="mailto:me@example.org?subject=Meep.&body=Meep is a funny word.">Mail someone else.
I don't think that would quite do it. I'm looking for a button to copy the text of a webpage and then paste it into the body of a blank Outlook email. |
|
|
|
|
|
#9 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Then insert the text into the "body"?
|
|
|
|
|
|
#10 |
|
Newbie
Join Date: Sep 2006
Posts: 7
Rep Power: 0
![]() |
Yes, the body of a new Outlook email. I want the text of the webpage to be inserted into the body of a new Outlook email. A new email consists of three sections: the "To:" field, the "Subject:" field, and the "body" of the email where the content goes. I'm not trying to be smart here, just going for clarity. Maybe I misunderstood your question.
-JTM |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|