Re: Multiple Attachments with Sendmail [SOLVED]
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56345
interpreted = N
texte = Here's the code that worked - very subtle differences.[sendmail To=name&From=name&Subject=My Subject&Content-Type=multipart/mixed;boundary="123abc456def"&MIME-version=1.0]--123abc456defContent-type: text/plain; charset="US-ASCII"Content-transfer-encoding: 7bitHere are the attachments...--123abc456defContent-Type: text/plain; name="SLOPE.TXT"Content-Disposition: attachmentContent-Transfer-Encoding: base64[encrypt method=base64&file=uploads/SLOPE.TXT&emailformat=T][/encrypt]--123abc456defContent-Type: text/plain; name="20040224081108-CHANNEL.TXT"Content-Disposition: attachmentContent-Transfer-Encoding: base64[encrypt method=base64&file=uploads/CHANNEL.TXT&emailformat=T][/encrypt]--123abc456def--[/sendmail]> -----Original Message-----> From: Clint Davis
> Sent: Tue, 24 Feb 2004 12:03:53 -0600> To: (WebDNA Talk)> Subject: Multiple Attachments with Sendmail> > I'm trying to attach two plain text files to an email using the code below.> But when the message comes through, the text files are blank. What am I> doing wrong?> > > [sendmail To=name&From=name&Subject=My Subject&Content-Type=multipart/mixed;> boundary="123abc456def"&MIME-version=1.0]> --123abc456def> Content-Type: text/plain> Here are the attachments...> > --123abc456def> Content-Type: text/plain; name="SLOPE.TXT"> Content-Transfer-Encoding: base64> Content-Disposition: attachment; filename="SLOPE.TXT"> [encrypt method=base64&file=uploads/SLOPE.TXT&EMAILFORMAT=T][/encrypt]> > --123abc456def> Content-Type: text/plain; name="CHANNEL.TXT"> Content-Transfer-Encoding: base64> Content-Disposition: attachment; filename="CHANNEL.TXT"> [encrypt method=base64&file=uploads/CHANNEL.TXT&EMAILFORMAT=T][/encrypt]> > --123abc456def--> [/sendmail]-------------------------------------------------------------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:
|
- Re: Multiple Attachments with Sendmail [SOLVED] ( Clint Davis 2004)
|
Here's the code that worked - very subtle differences.[sendmail To=name&From=name&Subject=My Subject&Content-Type=multipart/mixed;boundary="123abc456def"&MIME-version=1.0]--123abc456defContent-type: text/plain; charset="US-ASCII"Content-transfer-encoding: 7bitHere are the attachments...--123abc456defContent-Type: text/plain; name="SLOPE.TXT"Content-Disposition: attachmentContent-Transfer-Encoding: base64[encrypt method=base64&file=uploads/SLOPE.TXT&emailformat=T][/encrypt]--123abc456defContent-Type: text/plain; name="20040224081108-CHANNEL.TXT"Content-Disposition: attachmentContent-Transfer-Encoding: base64[encrypt method=base64&file=uploads/CHANNEL.TXT&emailformat=T][/encrypt]--123abc456def--[/sendmail]> -----Original Message-----> From: Clint Davis > Sent: Tue, 24 Feb 2004 12:03:53 -0600> To: (WebDNA Talk)> Subject: Multiple Attachments with Sendmail> > I'm trying to attach two plain text files to an email using the code below.> But when the message comes through, the text files are blank. What am I> doing wrong?> > > [sendmail To=name&From=name&Subject=My Subject&Content-Type=multipart/mixed;> boundary="123abc456def"&MIME-version=1.0]> --123abc456def> Content-Type: text/plain> Here are the attachments...> > --123abc456def> Content-Type: text/plain; name="SLOPE.TXT"> Content-Transfer-Encoding: base64> Content-Disposition: attachment; filename="SLOPE.TXT"> [encrypt method=base64&file=uploads/SLOPE.TXT&EMAILFORMAT=T][/encrypt]> > --123abc456def> Content-Type: text/plain; name="CHANNEL.TXT"> Content-Transfer-Encoding: base64> Content-Disposition: attachment; filename="CHANNEL.TXT"> [encrypt method=base64&file=uploads/CHANNEL.TXT&EMAILFORMAT=T][/encrypt]> > --123abc456def--> [/sendmail]-------------------------------------------------------------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/
Clint Davis
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:
emailer settings and control questions (1997)
Frames and WebCat (1997)
docs for WebCatalog2 (1997)
Applescript, WebDNA, and PDF (1997)
Return records from another (1997)
error: Too many nested [xxx] contexts (1997)
Server crash (1997)
something simple? (1998)
[WebDNA] naming math vars in v.7 (2010)
Quit revisited (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Micro-managing External Links (2006)
WC1.6 to WC2 date formatting -FIXED! (1997)
WebCat shared memory? (1999)
Date fun with MySQL (2004)
Emailer problem with WC 2.1, NT, WebSite 2.1 (1998)
Three new problems, maybe a fourth (1997)
[WebDNA] 64-bit CentOS 6.3 (2013)
WC2b15 File Corruption (1997)
[OT] Communigate List (2003)