Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asp.net Create/send email template

Status
Not open for further replies.

Sammy145

Programmer
Oct 4, 2002
173
GB
I have a email page template and i need to send this via asp.net (vb)
but i need to loop the my query (im using northwind --> orders table i have added a url field) URL, products, price as i can order n amount of items and send this out.

How can this be achieved i know how to send the email but dont know how to loop through and populate the template can someone show me some sample code on how to loop through n amount of times.

any sample code that i can use will help a greate deal

Thank you for any help

S
 
Hmm ok if you have a look at this example
near the end where it says "Making use of parsing to send e-mail"

HtmlFile.TemplateFileName = HttpContext.Current.Server.MapPath(“Templates/HtmlTemplate.htm”);

Now if i use tokens in my html page so
##URL##
##Product##
##price##

will the method u suggest work?

thank you

S
 
Please remember that the html need to know about teh loop so how do i define this
this need to loop depending on the no.of items ordered.
##URL##
##Product##
##price##
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top