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. 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Sendmail Excel Attachment ( Donovan Brooke 2006)
  2. Re: Sendmail Excel Attachment ( "Jyoti Behrani" 2006)
  3. Re: Sendmail Excel Attachment ( "Bess Ho" 2006)
  4. Re: Sendmail Excel Attachment ( Donovan Brooke 2006)
  5. Re: Sendmail Excel Attachment ( "Jyoti Behrani" 2006)
  6. Re: Sendmail Excel Attachment ( Donovan Brooke 2006)
  7. Sendmail Excel Attachment ( "Jyoti Behrani" 2006)
  8. Re: Sendmail Excel attachment ( andy mowrey 2003)
  9. Re: Sendmail Excel attachment ( John Peacock 2003)
  10. Re: Sendmail Excel attachment ( andy mowrey 2003)
  11. Re: Sendmail Excel attachment ( John Peacock 2003)
  12. Re: Sendmail Excel attachment ( andy mowrey 2003)
  13. Re: Sendmail Excel attachment ( andy mowrey 2003)
  14. Re: Sendmail Excel attachment ( andy mowrey 2003)
  15. Re: Sendmail Excel attachment ( Donovan 2003)
  16. Re: Sendmail Excel attachment ( "Dan Strong" 2003)
  17. Sendmail Excel attachment ( andy mowrey 2003)
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/ 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)