Attaching a plain text file via [sendmail]

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37547
interpreted = N
texte = We've searched through the mailing list archive and seen several different examples of how people are attaching messages via sendmail, and apart from the example supplied with 4.02.rc1 for attaching zip files, we've been unable to get any of the others to work for us. (We're just getting an attachment which is either empty, or contains most of our code - from the second boundary onwards)What we need to do, is to do a database search, and send the results as a plain text .txt (non compressed) attachment. This is our current coding.[sendmail Mime-Version=1.0&Content-Type=mulitpart/mixed;boundary=123456789&to=host@d omain1.com&from=server@domain2.com&subject=Plain file attached] --123456789 Content-Type: text/plain; name=results.txt; charset=us-ascii Here is the attachment --123456789 Content-Type: text/plain; name=results.txt; charset=us-ascii Content-Disposition: attachment; filename=results.txt(Results of database search)--123456789-- [/sendmail]Anyone doing something similar to this?Thanks. ------------------------------------------------------------- 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: Attaching a plain text file via [sendmail] (WebMaster 2001)
  2. Re: Attaching a plain text file via [sendmail] (Kenneth Grome 2001)
  3. Attaching a plain text file via [sendmail] (WebMaster 2001)
We've searched through the mailing list archive and seen several different examples of how people are attaching messages via sendmail, and apart from the example supplied with 4.02.rc1 for attaching zip files, we've been unable to get any of the others to work for us. (We're just getting an attachment which is either empty, or contains most of our code - from the second boundary onwards)What we need to do, is to do a database search, and send the results as a plain text .txt (non compressed) attachment. This is our current coding.[sendmail Mime-Version=1.0&Content-Type=mulitpart/mixed;boundary=123456789&to=host@d omain1.com&from=server@domain2.com&subject=Plain file attached] --123456789 Content-Type: text/plain; name=results.txt; charset=us-ascii Here is the attachment --123456789 Content-Type: text/plain; name=results.txt; charset=us-ascii Content-Disposition: attachment; filename=results.txt(Results of database search)--123456789-- [/sendmail]Anyone doing something similar to this?Thanks. ------------------------------------------------------------- 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/ WebMaster

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:

service stop and restart (1997) Question about replacing words (1998) Running 2 two WebCatalog.acgi's (1996) More on the email templates (1997) WC2b12: Yes, Formulas.db is for real (1997) Auto Web Pages (1999) Date Range search (1997) bug in [SendMail] (1997) RE: type 2 errors with ssl server (1997) Formulas.db (2000) WebCatalog f2 Installation (1997) Loop code problem (2000) process SSI (1998) Date problems-more (1997) [WebDNA] WebDNA 8.6 Server availability on macOS & macOS Mojave status (2019) Viewing old carts (was FEW QUESTIONS) (1997) Unable to view next 101-200 (1997) WC Database Format (1997) using showpage and showcart commands (1996) multi-paragraph fields (1997)