Get generated html data from aspx page and send out email

Discussion in 'ASP .Net' started by =?Utf-8?B?c2FtZWVy?=, Oct 4, 2005.

  1. hi all,

    i have hooked my website to paypal and other e merchant accounts for
    accepting credit cards.
    When a payment is done they post the data to my website. i process the data
    and update the database and it all works fine. Now i want to send out a
    notification confirmation email to my customer with the details of the order
    that they have placed.

    In regular asp 3.0 days i would open up a connection to the database and
    usng the recordset would loop arund the order and it;s line items and write
    that to a string variable with html formating tags in it and email it out, i
    am pretty sure i could the same in ASp.net as well but my website already
    have an asp.net web page which generated an invoice to view in the right
    format and all that, so the question becomes is there any way in .net that i
    could use this page to generate the invoice, get the generated html data from
    it and send it out in an email , this way my poor soul would not have to go
    through the pain of writing all the code again to generate the order format
    it again.

    Please suggest
     
    =?Utf-8?B?c2FtZWVy?=, Oct 4, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?c2FtZWVy?=

    Bruce Barker Guest

    using webclient, hit the site from your mail program. the downside is
    security, you will need a way in the url to specify the user, and this opens
    the feature to the internet. you should spend some time plugging this whole
    (check the requesting ipaddress, account, etc)

    -- bruce (sqlwork.com)




    "sameer" <> wrote in message
    news:...
    > hi all,
    >
    > i have hooked my website to paypal and other e merchant accounts for
    > accepting credit cards.
    > When a payment is done they post the data to my website. i process the
    > data
    > and update the database and it all works fine. Now i want to send out a
    > notification confirmation email to my customer with the details of the
    > order
    > that they have placed.
    >
    > In regular asp 3.0 days i would open up a connection to the database and
    > usng the recordset would loop arund the order and it;s line items and
    > write
    > that to a string variable with html formating tags in it and email it out,
    > i
    > am pretty sure i could the same in ASp.net as well but my website already
    > have an asp.net web page which generated an invoice to view in the right
    > format and all that, so the question becomes is there any way in .net that
    > i
    > could use this page to generate the invoice, get the generated html data
    > from
    > it and send it out in an email , this way my poor soul would not have to
    > go
    > through the pain of writing all the code again to generate the order
    > format
    > it again.
    >
    > Please suggest
    >
    >
     
    Bruce Barker, Oct 4, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. NWx
    Replies:
    2
    Views:
    340
  2. VB Programmer

    How send email of resulting aspx page?

    VB Programmer, Apr 17, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    785
    VB Programmer
    Apr 19, 2005
  3. TomislaW

    how to get size of generated aspx page

    TomislaW, Nov 4, 2005, in forum: ASP .Net
    Replies:
    13
    Views:
    1,160
    Juan T. Llibre
    Nov 5, 2005
  4. C.W.
    Replies:
    0
    Views:
    326
  5. Replies:
    2
    Views:
    110
    Richard Balbat
    Nov 12, 2013
Loading...

Share This Page