Re: attachment
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32572
interpreted = N
texte = On 6/1/00 10:57 am, Tony Frenzel so noted...>If I want to include an attached .txt file when I do a sendmail - how do I >do that?Write out the MIME formatted message to Emailer's EMailFolder (or to the outgoing mail folder for SIMS or however you have your outgoing mail set up). [sendmail] allows you to add additional parameters as headers, but I find when you need to add a lot of them, it's easier just to write the file out manually. Here's an edited snippet I use to send PDF invoices with confirmational emails as attachments. It shouldn't be a problem to adapt to your needs (you can leave off the x-mac- parameters for your text file attachments).[text]boundary=[random][random][random][random][purchaseNum][/text][writefile EMailFolder/[cart]]To: [name] <[email]>Cc:Bcc: confirmation@domain.comFrom: zzz
Subject: Purchase [purchaseNum], zzzDate: [emailDate]MIME-Version:1.0Content-Type: multipart/mixed; boundary=[boundary]This is a multi-part message in MIME format.--[boundary]Content-Type: text/plain; charset=us-ascii(A text message confirming their order goes here)--[boundary]Content-Type: application/pdf; name=[purchaseNum].pdf; charset=iso-8859-1; x-mac-type=50444620; x-mac-creator=4341524FContent-Disposition: inline; filename=[purchaseNum].pdf [include file=order/[cart].pdf&raw=T]--[boundary]--[/writefile]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On 6/1/00 10:57 am, Tony Frenzel so noted...>If I want to include an attached .txt file when I do a sendmail - how do I >do that?Write out the MIME formatted message to Emailer's EMailFolder (or to the outgoing mail folder for SIMS or however you have your outgoing mail set up). [sendmail] allows you to add additional parameters as headers, but I find when you need to add a lot of them, it's easier just to write the file out manually. Here's an edited snippet I use to send PDF invoices with confirmational emails as attachments. It shouldn't be a problem to adapt to your needs (you can leave off the x-mac- parameters for your text file attachments).[text]boundary=[random][random][random][random][purchaseNum][/text][writefile EMailFolder/[cart]]To: [name] <[email]>Cc:Bcc: confirmation@domain.comFrom: zzz Subject: Purchase [purchaseNum], zzzDate: [emailDate]MIME-Version:1.0Content-Type: multipart/mixed; boundary=[boundary]This is a multi-part message in MIME format.--[boundary]Content-Type: text/plain; charset=us-ascii(A text message confirming their order goes here)--[boundary]Content-Type: application/pdf; name=[purchaseNum].pdf; charset=iso-8859-1; x-mac-type=50444620; x-mac-creator=4341524FContent-Disposition: inline; filename=[purchaseNum].pdf [include file=order/[cart].pdf&raw=T]--[boundary]--[/writefile]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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://search.smithmicro.com/
Rob Marquardt
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:
template not found error (1998)
Re:Emailer setup (1997)
Speed Optimization - Mac (1997)
find with exceptions (1997)
Using [Include] Context (1999)
linetiems in thankyou.tpl (1997)
back button problem (1999)
Re[2]: Re[2]: [format] problems (2000)
Execute Applescript (1997)
A Global Variable (1997)
WebCommerce: Folder organization ? (1997)
authenticate and password (1998)
SKU (1997)
Generating Report Totals (1997)
autosensing lanague selection (1997)
[ShowIf] and empty fields (1997)
PIXO (1997)
thankyou.tmpl (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Problems with date math (1997)