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:

Sorry WebCat server not running (2001) [lookup] still not working (1998) surf express & webcat (1998) Not really WebCat (1997) Clickable maps and WebCatalog? (1996) Suffix Mapping????? (1998) two domains and one cart and database (2000) FYI: virus alert (1996) Fixed: 2cd pair of eyes please. (2003) Sorting (2005) carriage returns in data (1997) forming a SKU (1999) Add a field to the error log? (1997) Text data with spaces in them... (1997) [WebDNA] SSL not working with WebDNA FCGI 8.5.1 (2020) WebCatalog 2.0 b 15 mac (1997) hierarchy question... (2000) WebDNA release (2005) Webstar 1.3.1 PPC (1997) Emailed problem (2000)