Re: Sendmail Excel attachment
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51833
interpreted = N
texte = 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.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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/
Associated Messages, from the most recent to the oldest:
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.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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/
John Peacock
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:
shownext in Another Users.db (2000)
Re2: frames & carts (1997)
[subtotal] and others (1997)
how to add to triggers.db (1998)
ListVariables Problem (2003)
Grouping search fields, etc. (1997)
[searchString] (1997)
Spaces in FormVariables (2001)
WCS Newbie question (1997)
Languages (1997)
setting taxable to true (1997)
Nested tags count question (1997)
I guess I have a problem with commitment (2003)
[WebDNA] Accepting Payments on Site (2013)
serial number dishing (1997)
Help! WebCat2 bug (1997)
Re:Help name our technology! (1997)
[WebDNA] Good advise on [Showif] or alternative... (2012)
Incrementing a number (1998)
read and write you own cookies with webcat (1997)