Re: Email Formatting

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38827
interpreted = N
texte = Thanks Nitai, I've been looking for code to send both plain text and html in the same email.I don't see where it addresses my main problem though.I copied your code to a new test only page and set up the conversionsmail.db (I don't know why you don't use it in both the text and html parts, they both have problems with the carriage returns not being recognized).When I input:TestTest, testTest, test, testI still get:test test, test test, test, testThe last line in your conversionsmail.db reads:blank %OAIs this correct or did it change in the email you sent?I found this suggestion in the archives in response to a similar question:> However, the emails have no respect for carriage returns inside the sendmail >context. Everything runs together.> On 9/19/01 6:04 PM, The Defendant Alain Russell > Confessed: > >> You can fix the carriage returns in the email by saving the webcatalog >> templates with Unix line breaks - this is an option in Bbedit.I don't have access to BBEdit from home, I'm on a PC, so will have to wait until I can get on my Mac at work. This is the only other suggestion I've seen.Ideas???Michael----- Original Message ----- From: Nitai @ ComputerOil To: WebCatalog Talk Sent: Saturday, September 22, 2001 12:39 AM Subject: Re: Email Formatting Hi there,I just went trough the same thing this week. Here we go:This example assumes that you are sending a plaintext and HTML mail in the same time.[sendmail to=[email]&from=[sender]&subject=something&MIME-Version=1.0&Content-Type=mul tipart/alternative; boundary=1234abcd][!][/!] --1234abcd Content-Type: text/plain; charset=iso-8859-1[ConvertChars db=conversionsmail.db] [interpret] ---your code in here or get it with lookup or a search--- [/interpret] [/ConvertChars]--1234abcd Content-Type: text/html; charset=iso-8859-1 EasyWebShop eMail
[ConvertChars db=conversions.db] [interpret] ---your code in here or get it with lookup or a search--- [/interpret] [/ConvertChars]
--1234abcd-- [/sendmail]The conversionsmail.db should contain this:from to - Y %0AThese are the hex values (in this email they might be converted again) of the chars.The other conversions.db is the normal one that you use on your sites.Thanks go out to Christer for helping me on this topic the other days.So this is for everybody not wanting to search trough the archives for a long time:-)Nitai On 22.9.2001 7:29 AM, Michael Gribbin wrote:> I'm having a problem that maybe someone can help me with. > > I'm sending information to a client in an email. The information is > first stored in a database and can contain line breaks or paragraph > breaks like this: > > Info1 > > Info2 > > Info3 > > The information is input using a text area: > > > > It is then added to the database with an append: > > [APPEND db=dbInformation.db]Info=[URL][Info][/URL][/APPEND] > > I'm later retrieving it from the database and putting it into an email > with: > > [SENDMAIL To=xxx&From=xxx&Subjext=xxx] > Information: [INPUT][LOOKUP > db=dbInformaiton.db&LookInField=InfoNum&Value=123&ReturnField=Info][/INPUT] > > [/SendMail] > > When I'm using the above on a Mac G4-450/OS 9.1/WebCat 4.0 the email > formats correctly using all email programs: > > Info1 > > Info2 > > Info3 > > When I use the above on a G4-450/OSX/WebCat 4.0 and read it with Outlook > Express 5.0 or 6.0 on a PC it formats like: > > Info1Info2Info3 > > When I read it with Netscape on a PC or Outlook Express on a Mac it > formats correctly. > > Any ideas? > > Thanks in advance, > > Michael Gribbin > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/-- Tools to energize business Content Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/ Hauptstrasse 12 info@computeroil.com 8252 Schlatt/Switzerland Tel: +41 (0)52 654 15 55 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Email Formatting (Michael Gribbin 2001)
  2. Re: Email Formatting (Nitai @ ComputerOil 2001)
  3. Re: Email Formatting (Michael Gribbin 2001)
  4. Re: Email Formatting (Will Starck 2001)
  5. Re: Email Formatting (Michael Gribbin 2001)
  6. Re: Email Formatting (Nitai @ ComputerOil 2001)
  7. Re: Email Formatting (Michael Gribbin 2001)
  8. Re: Email Formatting (Gary J. Krockover 2001)
  9. Re: Email Formatting (Michael Gribbin 2001)
  10. Re: Email Formatting (Gary J. Krockover 2001)
  11. Email Formatting (Michael Gribbin 2001)
  12. email formatting (Olin Lagon 1999)
  13. Re: Email Formatting and Encryption (Dale LaFountain 1998)
  14. Re: Email Formatting and Encryption (RH Prouty 1998)
  15. Re: Email Formatting and Encryption (PCS Technical Support 1998)
  16. Re: Email Formatting and Encryption (Kenneth Grome 1998)
  17. Re: Email Formatting and Encryption (RH Prouty 1998)
  18. Re: Email Formatting and Encryption (Kenneth Grome 1998)
  19. Re: Email Formatting and Encryption (PCS Technical Support 1998)
  20. Re: Email Formatting and Encryption (Scott Szretter 1998)
  21. Re: Email Formatting and Encryption (Paul Willis 1998)
  22. Re: Email Formatting and Encryption (PCS Technical Support 1998)
  23. Re: Email Formatting (PCS Technical Support 1998)
  24. Re: Email Formatting (Scott Szretter 1998)
  25. Re: Email Formatting (Kenneth Grome 1998)
  26. Re: Email Formatting (Paul Willis 1998)
  27. Email Formatting (Scott Szretter 1998)
  28. Re: Email Formatting (PCS Technical Support 1998)
Thanks Nitai, I've been looking for code to send both plain text and html in the same email.I don't see where it addresses my main problem though.I copied your code to a new test only page and set up the conversionsmail.db (I don't know why you don't use it in both the text and html parts, they both have problems with the carriage returns not being recognized).When I input:TestTest, testTest, test, testI still get:test test, test test, test, testThe last line in your conversionsmail.db reads:blank %OAIs this correct or did it change in the email you sent?I found this suggestion in the archives in response to a similar question:> However, the emails have no respect for carriage returns inside the sendmail >context. Everything runs together.> On 9/19/01 6:04 PM, The Defendant Alain Russell > Confessed: > >> You can fix the carriage returns in the email by saving the webcatalog >> templates with Unix line breaks - this is an option in Bbedit.I don't have access to BBEdit from home, I'm on a PC, so will have to wait until I can get on my Mac at work. This is the only other suggestion I've seen.Ideas???Michael----- Original Message ----- From: Nitai @ ComputerOil To: WebCatalog Talk Sent: Saturday, September 22, 2001 12:39 AM Subject: Re: Email Formatting Hi there,I just went trough the same thing this week. Here we go:This example assumes that you are sending a plaintext and HTML mail in the same time.[sendmail to=[email]&from=[sender]&subject=something&MIME-Version=1.0&Content-Type=mul tipart/alternative; boundary=1234abcd][!][/!] --1234abcd Content-Type: text/plain; charset=iso-8859-1[ConvertChars db=conversionsmail.db] [interpret] ---your code in here or get it with lookup or a search--- [/interpret] [/ConvertChars]--1234abcd Content-Type: text/html; charset=iso-8859-1 EasyWebShop eMail
[ConvertChars db=conversions.db] [interpret] ---your code in here or get it with lookup or a search--- [/interpret] [/ConvertChars]
--1234abcd-- [/sendmail]The conversionsmail.db should contain this:from to - Y %0AThese are the hex values (in this email they might be converted again) of the chars.The other conversions.db is the normal one that you use on your sites.Thanks go out to Christer for helping me on this topic the other days.So this is for everybody not wanting to search trough the archives for a long time:-)Nitai On 22.9.2001 7:29 AM, Michael Gribbin wrote:> I'm having a problem that maybe someone can help me with. > > I'm sending information to a client in an email. The information is > first stored in a database and can contain line breaks or paragraph > breaks like this: > > Info1 > > Info2 > > Info3 > > The information is input using a text area: > > > > It is then added to the database with an append: > > [APPEND db=dbInformation.db]Info=[url][Info][/URL][/APPEND] > > I'm later retrieving it from the database and putting it into an email > with: > > [SENDMAIL To=xxx&From=xxx&Subjext=xxx] > Information: [input][LOOKUP > db=dbInformaiton.db&LookInField=InfoNum&Value=123&ReturnField=Info][/INPUT] > > [/SendMail] > > When I'm using the above on a Mac G4-450/OS 9.1/WebCat 4.0 the email > formats correctly using all email programs: > > Info1 > > Info2 > > Info3 > > When I use the above on a G4-450/OSX/WebCat 4.0 and read it with Outlook > Express 5.0 or 6.0 on a PC it formats like: > > Info1Info2Info3 > > When I read it with Netscape on a PC or Outlook Express on a Mac it > formats correctly. > > Any ideas? > > Thanks in advance, > > Michael Gribbin > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/-- Tools to energize business Content Management & eBusiness SystemsComputerOil GmbH http://computeroil.com/ Hauptstrasse 12 info@computeroil.com 8252 Schlatt/Switzerland Tel: +41 (0)52 654 15 55 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Michael Gribbin

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:

Signal Raised Error (1997) [isfile] ? (1997) Date search - yes or no (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) [WebDNA] WebDNA Showcase? (2008) Where's Cart Created ? (1997) WC2b12: Yes, Formulas.db is for real (1997) Chown www:wheel Almost There WebCat 5 on itools 7 (2003) b12 cannot limit records returned and more. (1997) [cart] Taxrate - seriously .. (2002) [SearchString] usage (1997) Trouble with formula.db + more explanation (1997) [include] and not found (2005) (1997) whole word search bringing irrelevant results.. (2000) Shopping carts and reloading pages (1997) [shownext max=?] armed (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) New commands in Final candidate (1997) Search/sort in URL Was: GuestBook example (1997)