Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send page by email

Status
Not open for further replies.

yandso

Programmer
Jul 20, 2001
278
US
Hey all,
I have this problem. I need to find out if this is possible. I need to simulate going to file >> send >> page by email. I am looking for something like the Print() function. I would appreciate any help I could get on the subject, even if it is to say that the function does not exsist.

Thanks,
Roj
 
Give this a shot:
Code:
function mailMe()
{
   window.open("mailto:?body="+d.URL);
}

<INPUT TYPE=&quot;button&quot; VALUE=&quot;Mail This Page&quot; onClick=&quot;mailMe&quot;>
That will send the URL for the active page. I'm not sure if there is a way to send the actual page contents though. Kevin
slanek@ssd.fsi.com
 
Kevin,
Thanks however that will not work in this case. The page contains an dynamically generated pdf file. What I need to send is the page with that specific pdf. But thanks for the response.

Roj
 
gerrygerry,

I don't quite get what you mean. How would doing it with frames help?

Roj
 
Well I would like to thank everyone for there suggestions, however I have decided to just go with a CDONTS solution.

Roj
 
Have a frameset with a button in the top frame and the pdf in the bottom frame. Then, have the javascript function in the top frame. You could append the bottomframe.location to the mailto. Just a thought. -gerrygerry
Go To
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top