Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 8th, 2006, 1:44 PM   #1
jtmark
Newbie
 
Join Date: Sep 2006
Posts: 7
Rep Power: 0 jtmark is on a distinguished road
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
jtmark is offline   Reply With Quote
Old Sep 8th, 2006, 1:55 PM   #2
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
Is this a basic html webpage or jsp?
hoffmandirt is offline   Reply With Quote
Old Sep 8th, 2006, 3:30 PM   #3
jtmark
Newbie
 
Join Date: Sep 2006
Posts: 7
Rep Power: 0 jtmark is on a distinguished road
Thanks for the reply. It's a jsp page.
jtmark is offline   Reply With Quote
Old Sep 8th, 2006, 3:50 PM   #4
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
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
hoffmandirt is offline   Reply With Quote
Old Sep 9th, 2006, 12:42 PM   #5
jtmark
Newbie
 
Join Date: Sep 2006
Posts: 7
Rep Power: 0 jtmark is on a distinguished road
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
jtmark is offline   Reply With Quote
Old Sep 9th, 2006, 1:22 PM   #6
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Sep 9th, 2006, 9:52 PM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.&amp;body=Meep is a funny word.">Mail someone else.</a>
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Sep 10th, 2006, 9:45 AM   #8
jtmark
Newbie
 
Join Date: Sep 2006
Posts: 7
Rep Power: 0 jtmark is on a distinguished road
a href="mailto:me@example.org?subject=Meep.&amp;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.
jtmark is offline   Reply With Quote
Old Sep 10th, 2006, 9:48 AM   #9
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Then insert the text into the "body"?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Sep 10th, 2006, 11:51 AM   #10
jtmark
Newbie
 
Join Date: Sep 2006
Posts: 7
Rep Power: 0 jtmark is on a distinguished road
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
jtmark is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:40 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC