Re: Sendmail Excel attachment
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 51825
interpreted = N
texte = Andy,This code has always worked for me on MacOSX, WebDNA 4.0.2rc1a:=================================[sendmail TO=howdy@doody.com&FROM=whoever@wherever.com&SUBJECT=SANITY IS OVERRATED&Content-Type=multipart/mixed; boundary="1234abcd"&MIME-version=1.0][!][/!]--1234abcdContent-Type: text/plainThe attached tab-delimited text file will open easily into Excel.--1234abcdContent-Type: text/plain; name="The_File.xls"Content-Transfer-Encoding: base64Content-Disposition: attachment; filename="The_File.xls"[encrypt method=base64&file=path_to/The_File.xls&EMAILFORMAT=T][/encrypt]--1234abcd--[/sendmail]=================================HTH-Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656------------------------------------------------------------On Mon, 21 Jul 2003 17:17:20 -0400 andy mowrey
wrote:>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/-------------------------------------------------------------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,This code has always worked for me on MacOSX, WebDNA 4.0.2rc1a:=================================[sendmail TO=howdy@doody.com&FROM=whoever@wherever.com&SUBJECT=SANITY IS OVERRATED&Content-Type=multipart/mixed; boundary="1234abcd"&MIME-version=1.0][!][/!]--1234abcdContent-Type: text/plainThe attached tab-delimited text file will open easily into Excel.--1234abcdContent-Type: text/plain; name="The_File.xls"Content-Transfer-Encoding: base64Content-Disposition: attachment; filename="The_File.xls"[encrypt method=base64&file=path_to/The_File.xls&EMAILFORMAT=T][/encrypt]--1234abcd--[/sendmail]=================================HTH-Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656------------------------------------------------------------On Mon, 21 Jul 2003 17:17:20 -0400 andy mowrey wrote:>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/-------------------------------------------------------------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/
"Dan Strong"
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:
Form Data, Back Button and 6.0.1 Patch (2005)
Databases going to sleep (1998)
Chicago based WebCat Hosters (2000)
RequiredFields template (1997)
Cancel Subscription (1996)
WebMerchant - MacAuthorize (1999)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Duplicates (1998)
customizing the color of user's pages (1997)
How can I record purchases to a database? (1998)
authorizenet and netscape (2002)
mac dev tools: PageSpinner extensions (2001)
More on the email templates (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
WebCat2 - Getting to the browser's username/password data (1997)
FEA REQ: One .hdr, multiple .db's (2003)
[WriteFile] problems (1997)
[WebDNA] Searching using variable or numeric number (2019)
showif field is number (1997)
WebCat2b15MacPlugin - [protect] (1997)