473,796 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application Tier HTML Email

Hello All,

I am hoping to hear other people's suggestions and advice regarding
this issue.
Generating and sending a basic HTML email with Microsoft.Net is easy.
I can throw some HTML together from strings, templates, excreta and
then fire it out to the world via System.Net.Mail .

If I want to generate a more advanced HTML email using the same the
same templates as my site I could write a component which uses screen
scrapping to grab the generated HTML , programmaticall y correct
relative URLs etc and send that via SmtpClient.Send ();

Now for the sake of argument I say I want to generate a fairly
advanced HTML email (say an account statement, receipt, etc.) but I
want to do it entirely at the application tier or my application
doesn't actually have a traditional site so I don't have the luxury of
using IIS.

What approaches or components have you used to author and generate a
HTML email with a lot of dynamic data in a .Net environment?

Thanks,
Nov 23 '07 #1
2 1265
"bthubbard" <Br************ *@gmail.comwrot e in message
news:71******** *************** ***********@f3g 2000hsg.googleg roups.com...
What approaches or components have you used to author and generate a
HTML email with a lot of dynamic data in a .Net environment?
I try to avoid HTML email if at all possible, as more and more people are
disabling it for (perceived) security concerns.

If I needed to email an account statement or a receipt, I'd create a PDF and
send it as an attachment.

I use this for all my PDF requirements: http://www.siberix.com/
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 23 '07 #2
For both my HTML and Text based email sent from asp.net, I use a simple
tagging system

|FirstName| |LastName|

Your invoice is |Price|

Etc...

I've even managed to get looping to work using begin end tag type
markers
|LineItems||Des cription| |Price|
|/LineItems|

From there it's just a matter of string manipulation.
Dave Bush
http://blog.dmbcllc.com

-----Original Message-----
From: bthubbard [mailto:Br****** *******@gmail.c om]
Posted At: Friday, November 23, 2007 11:38 AM
Posted To: microsoft.publi c.dotnet.framew ork.aspnet
Conversation: Application Tier HTML Email
Subject: Application Tier HTML Email

Hello All,

I am hoping to hear other people's suggestions and advice regarding
this issue.
Generating and sending a basic HTML email with Microsoft.Net is easy.
I can throw some HTML together from strings, templates, excreta and
then fire it out to the world via System.Net.Mail .

If I want to generate a more advanced HTML email using the same the
same templates as my site I could write a component which uses screen
scrapping to grab the generated HTML , programmaticall y correct
relative URLs etc and send that via SmtpClient.Send ();

Now for the sake of argument I say I want to generate a fairly
advanced HTML email (say an account statement, receipt, etc.) but I
want to do it entirely at the application tier or my application
doesn't actually have a traditional site so I don't have the luxury of
using IIS.

What approaches or components have you used to author and generate a
HTML email with a lot of dynamic data in a .Net environment?

Thanks,

Nov 23 '07 #3

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

Similar topics

2
2483
by: Kornl | last post by:
Hello, does anyone has any experience in developing n-tier applications in python? If yes would you like to share your experience? What turn out good and bad?? In your experience, how is a python server capable of handling various simultaneous connections in the context of a n-tier application? I'd also like to ask how is the state of database access and XML libraries on python?
77
5696
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a database from SQL Server to Oracle or DB2 or vice versa... and that's it.... And a lot of these enterprises don't need it as they already know what database they are going to use and they don't plan on switching in and out database in the first...
2
1587
by: Will | last post by:
Hi all. I'm beginning to think about how to write a new app at work. I'd like to design the app with scalability concerns addressed. We run SQL server for the data tier. I'd like to create some kind of middle tier that would hold the business logic for the app. I'd like to be able to design seperate presentation layers that would talk to the middle tier. I know my app is going to have people accesing it over our intranet using Internet...
2
1614
by: Pablo | last post by:
My application uses a class to access to the dataBase, there are several ones who are bussines objects (and uses the first one to work with the database) and, finally, I have the interface objects. Actually, I don't have any sql embebbed in the code so I'm working with stores procedures in SQL Server. Can I say that this is a n-tier (4 in this case) application? Thank you very much.
2
2846
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added to it to view additional details about the selected result (a second database query is triggered). I want this second query to pop up in a new window, the way it would if I used "window.open" in javascript. I've added a function in the
4
2595
by: Trevor Andrew | last post by:
Hi There, Hopefully this isn't too difficult a question to express here. I have a 3 tier application. 1. Presentation Tier: ASP.NET web application. 2. Middle Tier: ASP.NET Web Services that invoke COM based API for a third party product. 3. Data Tier: A SQL Server database that I can only access via the API. The user authentication for the web application is actually done via a call
2
1935
by: msnews.microsoft.com | last post by:
Hello, I have the scenario. I m building an application either in asp.net or window application. This application is base on n-tier application model. Let us take example of Northwind Database in SQL SERVER. i build an asp.net page. On that page i place the grid with one template column. In that column i put HTML Table with two rows. In First row there are one combobox and two textboxes. In the second row there is another DataGrid means...
2
1295
by: Sachin Thamke | last post by:
Hi I understood the 3-tier application but i have some questions Step- UI->Business Process Layer 1.Howt to Pass the data from UI to middle layer a. object.property=textbox.value b. create middle tier as sqlobjectsource/Data Table 3. array/test/xml file 2. From Middle Layer to Data Layer a. how to pass data
13
1965
by: mehdi_mousavi | last post by:
Hi folks, In an N-tier application, what is the possible values of N??? I'm not kidding, I just interviewed with a programmer today, and he started the "2-tier application" conversation. From then on, I heard about "5-tier application" and then "7-tier application".... I do know what is a 3-tier application, but what about 2, 5, and 7??? Does 2-tier means a "Client-Server" application model? What about 5 and 7??? Would you please...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
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
10018
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...
1
7553
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6795
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
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.