Re: Emailing html

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17686
interpreted = N
texte = At 10:08 AM 5/15/98, Paul Uttermohlen wrote: >could you show me an example of this?Sure.You can force a string of text to fill a certain area using that s specifier in the [format] context. So, to create a column that is 12 characters wide, I would enclose the contents in [format 12s][/format].[format 12s]my very long string[/format] would yield my very long (clipped to 12 characters).while [format 12s]short[/format] would give me short (expanded to 12 characters). Your string will align to the left side of the field.Similarly, you can use f formatting for floating-point numbers, which will align right. [format 8.2f]1200[/format] results in 1200.00. The first number (8) specifies the total width of the result, the second (2) specifies the number of digits in the decimal portion.So, in a real life situation, you could do something like this (make sure the WebDNA is all on one line):QUANTITY ISBN TITLE PRICE ---------------------------------------------------------------- [Format 6s][Quantity][/Format][Format 15s][ISBN][/Format][Format 33s][Title][/Format] [format 8.2f][math][Price]*[Quantity][/math][/format] Given [Quantity]=4, [ISBN]=12345-6789-0, [Title]=An Overly-Long-Titled Thesis on the SUbject of Absolutely Nothing, and [Price]=98.99 the result would look something like this:QUANTITY ISBN TITLE PRICE ---------------------------------------------------------------- 4 12345-6789-0 An Overly-Long-Titled Thesis on t 395.96 You would typically wrap the line of formatting code inside of a [founditems] or [lineitems] context to build multiple rows.-Dave > >thanks, paul > >>Well, you can put anything inside a sendmail context that you want. >>But...a lot of your customers will not be able to see your formatting. >>Rather, they will see your order form littered with all of the html tags. >> >>The better way to go is to use the [format] tag to set up a table-like >>stucture. You can use [format] to force your fields to a certain size, >>padded out with spaces or clipped to the proper length. >> >>-Dave >> >> >>At 8:38 PM 5/14/98, Dennis J. Bonsall, Jr. wrote: >>>Is there any way, with WebCatalog and the [sendmail] context to send >>>email in an html format? I am trying to create an email order form to >>>send to my client that is tabled, so it is easier to read. How would >>>I do this? >>> >>>Thanks, >>>Dennis >> >> >>o--------------- Dave MacLeay --+ >>o----------- Digital Frontier --+ >>o--- dave@digitalfrontier.com --+ > > > _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ > _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ > _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ > _/_/_/ Business - _\_\_\_\_\_\_\_\_\_\_ > _/_/_/ Real Estate - _\_\_\_\_ > _/_/_/Websites - Children _/ _\_\_\_ >_/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: Emailing html (Dave MacLeay 1998)
  2. Re: Emailing html (Paul Uttermohlen 1998)
  3. Re: Emailing html (Dave MacLeay 1998)
  4. Emailing html (Dennis J. Bonsall, Jr. 1998)
At 10:08 AM 5/15/98, Paul Uttermohlen wrote: >could you show me an example of this?Sure.You can force a string of text to fill a certain area using that s specifier in the [format] context. So, to create a column that is 12 characters wide, I would enclose the contents in [format 12s][/format].[format 12s]my very long string[/format] would yield my very long (clipped to 12 characters).while [format 12s]short[/format] would give me short (expanded to 12 characters). Your string will align to the left side of the field.Similarly, you can use f formatting for floating-point numbers, which will align right. [format 8.2f]1200[/format] results in 1200.00. The first number (8) specifies the total width of the result, the second (2) specifies the number of digits in the decimal portion.So, in a real life situation, you could do something like this (make sure the WebDNA is all on one line):QUANTITY ISBN TITLE PRICE ---------------------------------------------------------------- [Format 6s][Quantity][/Format][Format 15s][ISBN][/Format][Format 33s][Title][/Format] [format 8.2f][math][Price]*[Quantity][/math][/format] Given [Quantity]=4, [ISBN]=12345-6789-0, [Title]=An Overly-Long-Titled Thesis on the SUbject of Absolutely Nothing, and [Price]=98.99 the result would look something like this:QUANTITY ISBN TITLE PRICE ---------------------------------------------------------------- 4 12345-6789-0 An Overly-Long-Titled Thesis on t 395.96 You would typically wrap the line of formatting code inside of a [founditems] or [lineitems] context to build multiple rows.-Dave > >thanks, paul > >>Well, you can put anything inside a sendmail context that you want. >>But...a lot of your customers will not be able to see your formatting. >>Rather, they will see your order form littered with all of the html tags. >> >>The better way to go is to use the [format] tag to set up a table-like >>stucture. You can use [format] to force your fields to a certain size, >>padded out with spaces or clipped to the proper length. >> >>-Dave >> >> >>At 8:38 PM 5/14/98, Dennis J. Bonsall, Jr. wrote: >>>Is there any way, with WebCatalog and the [sendmail] context to send >>>email in an html format? I am trying to create an email order form to >>>send to my client that is tabled, so it is easier to read. How would >>>I do this? >>> >>>Thanks, >>>Dennis >> >> >>o--------------- Dave MacLeay --+ >>o----------- Digital Frontier --+ >>o--- dave@digitalfrontier.com --+ > > > _/_/_/_/_/_/_/_/_/_/_/_/|\_\_\_\_\_\_\_\_\_\_\_\_ > _/_/_/Paul Uttermohlen, Internet Marketspace, Inc. \_\_\_\_ > _/_/_/ mailto:paul@ims1.com - Website Development \_\_\_\_ > _/_/_/ Business - _\_\_\_\_\_\_\_\_\_\_ > _/_/_/ Real Estate - _\_\_\_\_ > _/_/_/Websites - Children _/ _\_\_\_ >_/_/_/_/_/_/_/_/_/_/_/_/_/_/ | \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

F3 crashing server (1997) Price value change (2000) WebDNA install - linux (permissions rehash?) (2002) [WebDNA] [OT] hello (2012) [WebDNA] Sort by Row (2017) OT: WebDNA and LINUX (2004) Re[3]: 2nd WebCatalog2 Feature Request (1996) how to set a new cart number periodically (1999) Sort Order on a page search (1997) How true is this? (1999) DON'T use old cart file! (1997) creative use of webcatalog (1998) Which beta for w* 4.1 and a problem w/b12 (1999) WebDNA's portability (2007) Is there an easier way? (1998) [defined]ish (1997) Purchased cart being overwritten - still !?? (1997) WebDNA Promo Sound Bite (2003) Wanted webcatalog coder to build 4 stores (2005) Exclamation point (1997)