RE: sending HTML email

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Justin (Justin_at_discussions.microsoft.com)
Date: 11/10/04


Date: Wed, 10 Nov 2004 13:05:03 -0800

Can you recommend an article or tutorial that will help me develop user
control that will hold the HTML? Or any other tutorials on sending HTML email
with asp.net.

Thanks, Justin.

"Bill Borg" wrote:

> Justin, it depends more on how you want to maintain the text (e.g. from a
> text file, in the db, in a web control, etc.). All of these are doable. In a
> text file, I'd go (vb):
>
> public function GetMyText as string
> Dim fi As New System.IO.FileInfo(Server.MapPath("~\myText.txt"))
> Dim sr As System.IO.StreamReader = fi.OpenText()
> return sr.ReadToEnd
> end function
>
> then... mailmessage.body = GetMyText()
>
> If it's mostly static and you send a lot of them, you should also consider
> caching the text at the app level.
>
> hth,
> Bill
>
> "Justin" wrote:
>
> > I have a fairly large piece of html, about 50 lines that I would like to send
> > via an ASP.NET page I was wondering what would be the best and cleanest way
> > to do this? Is there a way I can put the code in a WebControl or text file
> > and pass that to Mailmessage.Body?
> >
> > Any suggestions would be great.
> >
> > Thanks, Justin.



Relevant Pages

  • Re: Help with populating a questionnaire!
    ... Start by using the web to search for tutorials that explain how to populate ... to learn how to generate a control dynamically because you may never know ... 1) Please rate your knowledge FormA very little knowledge 1 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Button Control Event: question
    ... void CTestAPIDlg::run ... some other tutorials at the moment, so hopefully I can find a solution. ... Anyone with more thread handling experience than I, ... Accessing a control from a worker thread will wait until the main thread processes the message to the control. ...
    (microsoft.public.vc.mfc)
  • Re: Remember Color to B&W? please
    ... Blue to control the B&W. ... the best tutorial is on Adobe website under tutorials ... make an adjustment layer for hue sat do not move sliders, ... now go to layer under it and move the top slider that controls colors. ...
    (alt.graphics.photoshop)
  • Re: Page layout in VS 2005?
    ... I suggest starting with the HTML Table control (In the HTML section of your ... Visual Studio toolbox) because it does support control drops. ... > That brings me to my second question: Are there any good tutorials out ...
    (microsoft.public.dotnet.framework.aspnet)