473,805 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get generated html data from aspx page and send out email

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
Nov 19 '05 #1
1 1734
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" <sa****@discuss ions.microsoft. com> wrote in message
news:80******** *************** ***********@mic rosoft.com...
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

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1545
by: NWx | last post by:
Hi, I want to send html mail from my asp net application. But I'd like to let aspnet generate the HTML mailbody for me instead of creating it myself. So, is there any way to "capture" the result of a ASPX page to a string variable instead of sending it to the client browser? I want to assign this string to mailbody then, to send it by mail.
4
1977
by: clintonG | last post by:
Technically speaking, this issue is not about modifying the HTML generated by server controls but preceding the HTML generated by server controls with an HTML control generated on the basis of the type and the context of the server control itself. Clear as mud? :-) Consider the following server control... <asp:textbox id="MemberEmail" runat="server" ></asp:textbox> TextBox renders at run-time as an HTML control... <input...
4
2347
by: Ken D. | last post by:
I have an asp page that collects data on referrals. The user inputs the information and selects the rep to receive the referral. My data is being saved to a backend database (SQL) and the user is receiving a confirmation page after hitting the Submit button. Now, what I need is a way to have an email sent to the rep that is selected in the drop down list on the asp form. I have a SQL table containing the reps and corresponding email...
3
1464
by: JJ297 | last post by:
Hello, After a user enters their request I'm sending a generated email to someone. How do I get that question to appear in the email? I have the link appearing in the email. This is what I have thus far. Dim ocdoEmail As New Object ocdoEmail = Server.CreateObject("CDO.Message") ocdoEmail.To = Session("GetEmail") ocdoEmail.From = Session("GetEmail")
0
10613
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10368
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10107
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.