![]() |
|
![]() | ||
|
Subject:
Emailing .asp pages
Category: Computers > Internet Asked by: tobey-ga List Price: $5.00 |
Posted:
31 Jan 2003 04:32 PST
Expires: 02 Mar 2003 04:32 PST Question ID: 155592 |
Working as an affiliate, my site links through to a travel site with a booking engine that returns results of price and availability in a .asp page. I would to give my visitors the opportunity to enter their email address to receive the results of this page. I thought this might be possible as you can send pages by email through internet explorer. I can frame the travel sites page to include an email box but don't know how the mechanics of coding would work if at all possible. |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Emailing .asp pages
From: mrbuzz-ga on 31 Jan 2003 06:41 PST |
Hi tobey-ga, This is possible but you'll have to be able to access some sort of server-side scripting language on your own webhost, such as php. Then what you would do is, first get input from the visitor on your page, then using the php script, access the booking site's asp file and pass over the input variables, parse their output, then using your page to send the email to the visitor. If you don't have access to code php on your webhost but you do have access to asp, you'll need an additional component to be installed on the server that lets you fetch remote urls from the asp script (which most shared or free webhosting will probably not allow). I hope gives you some ideas and possibly a general direction to focus your searching. Good luck, mrbuzz-ga |
Subject:
Re: Emailing .asp pages
From: alexei-ga on 05 Feb 2003 08:45 PST |
It is quite easy to send emails from an asp page. Assuming you are developing with visual Interdev, you will ned to go to "Project references" and add the "Microsoft CDO for NT 1.2 library" to the project. The classes and their methods and properties for CDO are available in the Object browser window. Here is the basic framework for sending an email from an asp page...... Dim email set email = Server.CreateObject("CDONTS.NewMail") message = "<HTML>" message = message & "<head>" message = message & "<title> Your title</title>" message = message & "</head>" message = message & "<body><b>" message = "<p><b>Your message</b> " &session("username") with email .From = "pingsong@dysgu.cd" .To = "pingsong@dysgu.cd" .BodyFormat = 0 .MailFormat = 0 .Subject = "Subject" .Body = message .Send end with set email = nothing Good luck! |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |