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 differentexamples of how people are attaching messages via sendmail, and apart fromthe example supplied with 4.02.rc1 for attaching zip files, we've beenunable to get any of the others to work for us.(We're just getting an attachment which is either empty, or contains most ofour code - from the second boundary onwards)What we need to do, is to do a database search, and send the results as aplain text .txt (non compressed) attachment.This is our current coding.[sendmail Mime-Version=1.0&Content-Type=mulitpart/mixed;boundary=123456789&to=host@domain1.com&from=server@domain2.com&subject=Plain file attached]--123456789Content-Type: text/plain; name=results.txt; charset=us-asciiHere is the attachment--123456789Content-Type: text/plain; name=results.txt; charset=us-asciiContent-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:
We've searched through the mailing list archive and seen several differentexamples of how people are attaching messages via sendmail, and apart fromthe example supplied with 4.02.rc1 for attaching zip files, we've beenunable to get any of the others to work for us.(We're just getting an attachment which is either empty, or contains most ofour code - from the second boundary onwards)What we need to do, is to do a database search, and send the results as aplain text .txt (non compressed) attachment.This is our current coding.[sendmail Mime-Version=1.0&Content-Type=mulitpart/mixed;boundary=123456789&to=host@domain1.com&from=server@domain2.com&subject=Plain file attached]--123456789Content-Type: text/plain; name=results.txt; charset=us-asciiHere is the attachment--123456789Content-Type: text/plain; name=results.txt; charset=us-asciiContent-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:
WebCat for Unix?? (1997)
Sorting (2005)
thankyou.tmpl (1997)
Placement of .tpl files? (2000)
problems with 2 tags (1997)
NT Version on IIS 4.0 (1997)
Subcription Sales w/WebCatalog (1999)
[WebDNA] File Include HTM (2008)
WebCommerce: Folder organization ? (1997)
webten vs. webstar (1998)
What am I missing (1997)
Date/Time format problems (1997)
ftp to webstar (2001)
WCS Newbie question (1997)
creating a ShipCosts database (1997)
OK, here goes... (1997)
Multiple prices (1997)
quick GREP question (2001)
Problem when Inputing text (1999)
WebCat2b12plugin - [search] is broken ... not! (1997)