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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email

Status
Not open for further replies.
Aug 2, 2002
28
GB
Hello,

I’m not sure what I am trying to do is possible but here goes…

We have a web online booking system for a holiday company. Half way through we let users print a page via JavaScript, using innerHTML so that they have a paper version of the quote.

Ideally what I would like to do is capture the web page and let someone email the page, i.e. like ‘email a friend’.

If I could insert the HTML that is the innerHTML and add it to a mailto this would be ideal.

Unfortunately, we are not able to store the link as each link is unique and to revisit would produce an error.

If anyone could throw any suggestions my way it would be most appreciated.

Thank you.
 
There are free server-side components to create PDF documents... depends what server-side language you are going with (I know there is a PHP one and a JSP one I have used int he past). Once you have chosen the server-side compnent, it just comes down to implementation (and this will probably involved changing your user experience for the ecommerce application - so may have a longer reach than initially expected).

I'd start by googling for PDF components available for use within your server-side environment, and go from there (check with the forum specific to your server-side language, too).

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
CDO and ASP was they way to go! Here is the code I eventually used.

<%

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Test Email"
myMail.From=anyone@emailaddress.net
myMail.To=anyone@emailaddress.net
myMail.HTMLBody = "body of the email including any HTML"
myMail.Send
set myMail=nothing

%>

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top