Sendmail Excel attachment

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51824
interpreted = N
texte = Hi! I'm trying to send a tabbed file as an attachment using [sendmail] on a Mac 10.2.4 running WebDNA 4.5.1, but it never comes through and the errors in the email logs aren't specific enough to help. I've tried commenting out the Unix & Mac line endings, but neither does the trick. Here's the code I'm using (based on some of Scott's code from the archives): [TEXT]boundary=Multipart_[date]_[time]_[cart][/TEXT] [!][TEXT]line_ending=%0D%0A[/TEXT][/!] [!]----- WINDOWNS CRLF -----[/!] [!][TEXT]line_ending=%0D[/TEXT][/!] [!]----- MAC CR -----[/!] [TEXT]line_ending=%0A[/TEXT] [!]----- UNIX LF -----[/!] [TEXT]attach_filename=test.db[/TEXT] [SENDMAIL to=andy@gin-n-tonic.com&from=test@gin-n-tonic.com.com&subject=Testing Binary Attachment&MIME-version=1.0&Content-Type=multipart/ mixed;boundary=[boundary]][!] [/!]--[boundary][unurl][line_ending][/unurl][!] [/!]Content-Type: text/plain[unurl][line_ending][/unurl][!] [/!]Content-Transfer-Encoding: 7bit[unurl][line_ending][line_ending][/unurl][!] [/!]This email contains an Excel document attachment:--[boundary][unurl][line_ending][/unurl][!] [/!]Content-Type:application/ msexcel;name=[attach_filename][unurl][line_ending][/unurl][!] [/!]Content-Transfer-Encoding: base64[unurl][line_ending][/unurl][!] [/!]Content-Disposition: attachment; filename=[attach_filename][unurl][line_ending][line_ending][/unurl][!] [/!][encrypt method=base64&file=[attach_filename]&EMAILFORMAT=T][/encrypt]-- [boundary]-- [/SENDMAIL] Does anyone have any ideas on fixing this or code of their own that works? Tia, Andy Mowrey ------------------------------------------------------------- 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)
Hi! I'm trying to send a tabbed file as an attachment using [sendmail] on a Mac 10.2.4 running WebDNA 4.5.1, but it never comes through and the errors in the email logs aren't specific enough to help. I've tried commenting out the Unix & Mac line endings, but neither does the trick. Here's the code I'm using (based on some of Scott's code from the archives): [text]boundary=Multipart_[date]_[time]_[cart][/TEXT] [!][text]line_ending=%0D%0A[/TEXT][/!] [!]----- WINDOWNS CRLF -----[/!] [!][text]line_ending=%0D[/TEXT][/!] [!]----- MAC CR -----[/!] [text]line_ending=%0A[/TEXT] [!]----- UNIX LF -----[/!] [text]attach_filename=test.db[/TEXT] [SENDMAIL to=andy@gin-n-tonic.com&from=test@gin-n-tonic.com.com&subject=Testing Binary Attachment&MIME-version=1.0&Content-Type=multipart/ mixed;boundary=[boundary]][!] [/!]--[boundary][unurl][line_ending][/unurl][!] [/!]Content-Type: text/plain[unurl][line_ending][/unurl][!] [/!]Content-Transfer-Encoding: 7bit[unurl][line_ending][line_ending][/unurl][!] [/!]This email contains an Excel document attachment:--[boundary][unurl][line_ending][/unurl][!] [/!]Content-Type:application/ msexcel;name=[attach_filename][unurl][line_ending][/unurl][!] [/!]Content-Transfer-Encoding: base64[unurl][line_ending][/unurl][!] [/!]Content-Disposition: attachment; filename=[attach_filename][unurl][line_ending][line_ending][/unurl][!] [/!][encrypt method=base64&file=[attach_filename]&EMAILFORMAT=T][/encrypt]-- [boundary]-- [/SENDMAIL] Does anyone have any ideas on fixing this or code of their own that works? Tia, Andy Mowrey ------------------------------------------------------------- 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:

Auto-email upon restart? (2001) Merging databases (1997) Re:Emailer tracking (1997) [WebDNA] Host List (2010) Date Range works (1997) sorting dates (1999) Protect and Serve (1999) can WC render sites out? (1997) Multiple cart additions (1997) MacActivity and PCS (1997) How to get shownext to just shownext once (1997) Re:WebCatalog 3 for Macintosh (1998) listcookies works only sometimes (1997) Snippet for finding unused Header Fields in the Orders.db (2003) Incorrect Store Totals (2005) can webcat determine an image's pixel dimensions? (2000) Add a field to the error log? (1997) Plugin or CGI or both (1997) What is WebDNA (1997) Nested tags count question (1997)