convertchars and e-mail

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17944
interpreted = N
texte = I'm going bonkers trying to get this to work the way I expect... hopefully it's something simple I'm just not getting.I've got a few template pages that I'm using as an entry screen for an e-mail service we provide, that archives (using WebCat) into a database for searching through our web site.The problem is that while I can get everything to work just great for display on the web, when I try to push the data through SENDMAIL, things like quote marks (), ampersands (&) and such get converted into HTML entities, and/or truncate the field.template 1 - admin entry ---------------------------- has HTML like this: submitting the page gets to template 2...template 2 - safety net ---------------------------- grabs the fields from the previous form, and appends them into the database, like the following (I removed many of the fields to make it easier to read)...[append db=newsflash.db]Summary=[Summary][/append]I then do a SEARCH in the database to make sure it worked, re-populate a form with hidden fields with the values I already submitted, and display what the real ARCHIVE DISPLAY will look like for our clients.There's a DELETE button to remove this posting from the database, in case something bizarre happened during the submission.Another button SUBMITS the information template 3.template 3 - liststar blast ---------------------------- Takes the fields from the safety net template, and stuffs them into a SENDMAIL context to our ListStar server and blasts the message to roughly 3000 people.the code looks like this: [Search db=newsflash.db&eqNewsflash_IDdata=[newID]&Newsflash_IDsort=1&Newsflash_IDsdir=de&max=1] [founditems] [include file=newsflash.inc] [/founditems] [/search]the include file looks like: [SENDMAIL to=listserver&from=listposter&subject=[Short_Subject]] [Long_Subject]Summary: [input][Summary][/input][showif [Opinion]>]Delphi Opinion: [input][Opinion][/input][/showif][showif [Details]>]Details: [input][Details][/input][/showif][showif [Additional_Information]>]Additional Information: [input][Additional_Information][/input][/showif] [/SENDMAIL]----- I've tried the SENDMAIL bit with and without the [input][/input] as well as using the standard [convertchars][/convertchars] and nothing works as I am hoping it would.What do I need to do to get web AND e-mail friendly text out of this?Dan Keldsen - djk@delphigroup.com Director, I.S. - webmaster@delphigroup.com The Delphi Group - http://www.delphigroup.com/ 100 City Hall Plaza - ph: 617-247-1511 Boston, MA 02108-2106 - fax:617-247-4957 Associated Messages, from the most recent to the oldest:

    
  1. Re: convertchars and e-mail (Kenneth Grome 1998)
  2. convertchars and e-mail (Dan Keldsen 1998)
I'm going bonkers trying to get this to work the way I expect... hopefully it's something simple I'm just not getting.I've got a few template pages that I'm using as an entry screen for an e-mail service we provide, that archives (using WebCat) into a database for searching through our web site.The problem is that while I can get everything to work just great for display on the web, when I try to push the data through SENDMAIL, things like quote marks (), ampersands (&) and such get converted into HTML entities, and/or truncate the field.template 1 - admin entry ---------------------------- has HTML like this: submitting the page gets to template 2...template 2 - safety net ---------------------------- grabs the fields from the previous form, and appends them into the database, like the following (I removed many of the fields to make it easier to read)...[append db=newsflash.db]Summary=[Summary][/append]I then do a SEARCH in the database to make sure it worked, re-populate a form with hidden fields with the values I already submitted, and display what the real ARCHIVE DISPLAY will look like for our clients.There's a DELETE button to remove this posting from the database, in case something bizarre happened during the submission.Another button SUBMITS the information template 3.template 3 - liststar blast ---------------------------- Takes the fields from the safety net template, and stuffs them into a SENDMAIL context to our ListStar server and blasts the message to roughly 3000 people.the code looks like this: [Search db=newsflash.db&eqNewsflash_IDdata=[newID]&Newsflash_IDsort=1&Newsflash_IDsdir=de&max=1] [founditems] [include file=newsflash.inc] [/founditems] [/search]the include file looks like: [SENDMAIL to=listserver&from=listposter&subject=[Short_Subject]] [Long_Subject]Summary: [input][Summary][/input][showif [Opinion]>]Delphi Opinion: [input][Opinion][/input][/showif][showif [Details]>]Details: [input][Details][/input][/showif][showif [Additional_Information]>]Additional Information: [input][Additional_Information][/input][/showif] [/SENDMAIL]----- I've tried the SENDMAIL bit with and without the [input][/input] as well as using the standard [convertchars][/convertchars] and nothing works as I am hoping it would.What do I need to do to get web AND e-mail friendly text out of this?Dan Keldsen - djk@delphigroup.com Director, I.S. - webmaster@delphigroup.com The Delphi Group - http://www.delphigroup.com/ 100 City Hall Plaza - ph: 617-247-1511 Boston, MA 02108-2106 - fax:617-247-4957 Dan Keldsen

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:

Help name our technology! I found it (1997) [sendmail] questions... (1997) text size limitation (1997) Bug in 4.5 - Needs to be fixed ASAP. (2002) WebCat Error Log problem (2.0.1, acgi, Mac) (1997) [WebDNA] why is the webdna.us site slow? (sometimes?) (2011) Dummy Credit Card Number for debug? (1997) Help!!!! (1997) [INCLUDE] Limitations (1998) Running 2 two WebCatalog.acgi's (1996) Applescript Hack (1996) [protect] on NT? (1997) WCS Newbie question (1997) 2nd WebCatalog2 Feature Request (1996) [WebDNA] Month Old Email files in email folder... (2010) Migrating to NT (1997) Problems with [Applescript] (1997) generator prob (2001) Off-topic: Cheap hosting (but not webdna) ... (2002) indexing dates (1998)