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 & WebStar Mail and 551 Error (2000)
[Sum] function? (1997)
Multiple Search Fields (1998)
filemaker - orderfile (1997)
WebCatalog can't find database (1997)
ReplaceFoundItems Problem (2003)
Incompatibility with WebCat 3 templates ... (2000)
Running 2 two WebCatalog.acgi's (1996)
2nd try: possible to weight results of grouped fields search? (1998)
Question about replacing words (1998)
Small problem (2001)
forms and variables (1998)
OK, here's a new one (2002)
Problem with [math] (2000)
Windows Install issue (2003)
sql protect routine (2005)
[Sum] function? (1997)
Re(2): Problem about [CART] number (1998)
[Webcat 2]Next (1997)
Banner DNA (1997)