Re: Sendmail Excel attachment
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51834
interpreted = N
texte = That did it, thanks!I appreciate the tips on where the CRLF pairs go and using [writefile] to check the code.Thanks,AndyOn Tuesday, Jul 22, 2003, at 12:12 US/Eastern, John Peacock wrote:> andy mowrey wrote:>> The rule of thumb is two CRLF pairs after _each_ header. Change your > code thusly:>>> [/!]Content-Type: text/plain; name="test1.xls"[line_ending][!]>> [/!]Content-Transfer-Encoding: base64[line_ending][!]>> [/!]Content-Disposition: attachment; >> filename="test1.xls"[line_ending][!]>> [/!][encrypt method=base64&file=test1.xls&EMAILFORMAT=T][/ >> encrypt][line_ending][line_ending][!]>> [/!]--1234abcd-->> [/!]Content-Type: text/plain; name="test1.xls"[line_ending][!]> [/!]Content-Transfer-Encoding: base64[line_ending][!]> [/!]Content-Disposition: attachment; > filename="test1.xls"[line_ending][line_ending][!]> [/!][encrypt > method=base64&file=test1.xls&EMAILFORMAT=T][/ > encrypt][line_ending][line_ending][!]> [/!]--1234abcd-->> You should also look at the file on disk, not how your mail client may > interpret it. In particular, it is useful to use a binary editor to > see that the correct sequence of CRLF's are present. If you replace > the [sendmail] context with a corresponding [writefile] context, you > can check to see that everything is in place before trying to send the > message.>> HTH>> John>> -- > John Peacock> Director of Information Research and Technology> Rowman & Littlefield Publishing Group> 4501 Forbes Boulevard> Suite H> Lanham, MD 20706> 301-459-3366 x.5010> fax 301-429-5748>>> -------------------------------------------------------------> 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://webdna.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
That did it, thanks!I appreciate the tips on where the CRLF pairs go and using [writefile] to check the code.Thanks,AndyOn Tuesday, Jul 22, 2003, at 12:12 US/Eastern, John Peacock wrote:> andy mowrey wrote:>> The rule of thumb is two CRLF pairs after _each_ header. Change your > code thusly:>>> [/!]Content-Type: text/plain; name="test1.xls"[line_ending][!]>> [/!]Content-Transfer-Encoding: base64[line_ending][!]>> [/!]Content-Disposition: attachment; >> filename="test1.xls"[line_ending][!]>> [/!][encrypt method=base64&file=test1.xls&EMAILFORMAT=T][/ >> encrypt][line_ending][line_ending][!]>> [/!]--1234abcd-->> [/!]Content-Type: text/plain; name="test1.xls"[line_ending][!]> [/!]Content-Transfer-Encoding: base64[line_ending][!]> [/!]Content-Disposition: attachment; > filename="test1.xls"[line_ending][line_ending][!]> [/!][encrypt > method=base64&file=test1.xls&EMAILFORMAT=T][/ > encrypt][line_ending][line_ending][!]> [/!]--1234abcd-->> You should also look at the file on disk, not how your mail client may > interpret it. In particular, it is useful to use a binary editor to > see that the correct sequence of CRLF's are present. If you replace > the [sendmail] context with a corresponding [writefile] context, you > can check to see that everything is in place before trying to send the > message.>> HTH>> John>> -- > John Peacock> Director of Information Research and Technology> Rowman & Littlefield Publishing Group> 4501 Forbes Boulevard> Suite H> Lanham, MD 20706> 301-459-3366 x.5010> fax 301-429-5748>>> -------------------------------------------------------------> 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://webdna.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://webdna.smithmicro.com/
andy mowrey
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:
WC1.6 to WC2 date formatting (1997)
Webcatalog error, Plug-in for Webstar (1996)
[SearchString] usage (1997)
frames & carts (1997)
Webstar 1.3.1 PPC (1997)
# of real domains on 1 web server (1997)
4.0.2b5 not finding databases under load (2000)
[WebDNA] WebDNA 7 (2011)
Bug Report, maybe (1997)
Separate SSL Server (1997)
Waitfor file (2000)
advise!! (2001)
WebCat2.0 [format thousands .0f] no go (1997)
syntax question, not in online refernce (1997)
WebCat2: multiple currency support (1997)
[SearchString] problem with [search] context (1997)
Search Questions (2000)
Denying access by IP address (2000)
Meet your competition (2000)
MasterCounter and capitalization (1997)