Send the viewing HTML page by email


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Send the viewing HTML page by email

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    111

    Send the viewing HTML page by email

    Hi,

    I have a web page displaying a catalog of products, and there is a button which will send this catalog to the user by email when it is clicked. My problem is: can I somehow capture the viewing page and send it by email to user? If yes, how could I capture it and send it as HTML format? If no, is there any way to work around it without regenerating a new page?

    Thank you very much.

  2. #2
    Join Date
    May 2005
    Location
    UK
    Posts
    278
    Is the catalog all that is in the web page? If yes you could use a webclient In the system.net namespace there is a WebClient class available or the HttpwebRequest class which can be used to make a request to the page if you are not on the page
    or you could this.Page.Response on the server and send it across before the response is sent to the client
    Refer msdn you can get the complete string equivalent of the web page with the response
    Sri

  3. #3
    Join Date
    Aug 2005
    Posts
    111
    Thanks Sri,

    I use the webClient or Httpwebrequest as keywords to search in the internet and read several articles about how to request a web page content. However, it only part of my expected solution. Except capturing the content of a web page, I need to send the page to user by email. An example of one of the articles I read indicates the use of streamreader to read the content, but I have no idea of how to read the page and send it by email. So, would you please tell me a bit more detail?

    Thank you very much

  4. #4
    Join Date
    May 2005
    Location
    UK
    Posts
    278
    This is an article on screen scrapes where in a web page content is assigned to label text.

    After reading this assign the content to your email , content(i think its called body) and you will have to enable html email and send the email

    http://www.4guysfromrolla.com/webtech/070601-1.shtml

    Does that help?
    Sri

Similar Threads

  1. Help calling HTML page
    By Proggy in forum VB Classic
    Replies: 1
    Last Post: 11-08-2005, 04:37 PM
  2. How to load html page ?
    By smita in forum Java
    Replies: 1
    Last Post: 05-04-2005, 01:10 PM
  3. Send Email ????
    By Paul in forum VB Classic
    Replies: 0
    Last Post: 03-11-2001, 09:45 PM
  4. Replies: 0
    Last Post: 01-22-2001, 04:59 PM
  5. send ASP in HTML format: How?
    By Chris Hickey in forum ASP.NET
    Replies: 2
    Last Post: 06-17-2000, 01:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center