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.com From: zzz Subject: Purchase [purchaseNum], zzz Date: [emailDate] MIME-Version:1.0 Content-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=4341524F Content-Disposition: inline; filename=[purchaseNum].pdf [include file=order/[cart].pdf&raw=T] --[boundary]--[/writefile]Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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:

    
  1. Re: [WebDNA] How to use attachment with sendmail (Stuart Tremain 2020)
  2. [WebDNA] How to use attachment with sendmail (Tailored Web Solutions 2020)
  3. Re: [WebDNA] Sendmail with attachment (Stuart Tremain 2019)
  4. [WebDNA] Sendmail with attachment (Stephen Braun 2019)
  5. [WebDNA] Sendmail with attachment (Stephen Braun 2019)
  6. RE: [WebDNA] [sendmail] attachment on unix (Dave Daniels 2014)
  7. Re: [WebDNA] [sendmail] attachment on unix (Donovan Brooke 2014)
  8. [WebDNA] [sendmail] attachment on unix (Dave Daniels 2014)
  9. Re: [WebDNA] sendmail html with image attachments (Rob 2008)
  10. [WebDNA] sendmail html with image attachments ("Olin Lagon" 2008)
  11. Re: Sendmail Excel Attachment ( Donovan Brooke 2006)
  12. Re: Sendmail Excel Attachment ( "Jyoti Behrani" 2006)
  13. Re: Sendmail Excel Attachment ( "Bess Ho" 2006)
  14. Re: Sendmail Excel Attachment ( Donovan Brooke 2006)
  15. Re: Sendmail Excel Attachment ( "Jyoti Behrani" 2006)
  16. Re: Sendmail Excel Attachment ( Donovan Brooke 2006)
  17. Sendmail Excel Attachment ( "Jyoti Behrani" 2006)
  18. Re: Stripping attachments in shared pop ( Phil Herring 2005)
  19. Re: Stripping attachments in shared pop ( Thierry Almy 2005)
  20. Re: Stripping attachments in shared pop ( sal danna 2005)
  21. Re: Stripping attachments in shared pop ( Jesse Proudman 2005)
  22. Re: Stripping attachments in shared pop ( Phil Herring 2005)
  23. Re: Stripping attachments in shared pop ( Jesse Proudman 2005)
  24. Stripping attachments in shared pop ( Phil Herring 2005)
  25. Re: sendmail and attachments ( Rob Marquardt 2004)
  26. Re: sendmail and attachments ( "IBS Ltd." 2004)
  27. Re: sendmail and attachments ( Kenneth Grome 2004)
  28. sendmail and attachments ( "IBS Ltd." 2004)
  29. Re: Multiple Attachments with Sendmail [SOLVED] ( Clint Davis 2004)
  30. Re: Multiple Attachments with Sendmail ( devaulw@onebox.com 2004)
  31. Multiple Attachments with Sendmail ( Clint Davis 2004)
  32. Re: Sendmail Excel attachment ( andy mowrey 2003)
  33. Re: Sendmail Excel attachment ( John Peacock 2003)
  34. Re: Sendmail Excel attachment ( andy mowrey 2003)
  35. Re: Sendmail Excel attachment ( John Peacock 2003)
  36. Re: Sendmail Excel attachment ( andy mowrey 2003)
  37. Re: Sendmail Excel attachment ( andy mowrey 2003)
  38. Re: Sendmail Excel attachment ( andy mowrey 2003)
  39. Re: Sendmail Excel attachment ( Donovan 2003)
  40. Re: Sendmail Excel attachment ( "Dan Strong" 2003)
  41. Sendmail Excel attachment ( andy mowrey 2003)
  42. Re: image attachments using [sendmail] - does it require v4.5? (Alain Russell 2002)
  43. image attachments using [sendmail] - does it require v4.5? (dale's stuff 2002)
  44. Re: image attachment (Alain Russell 2002)
  45. Re: image attachment (Kalin Mintchev 2002)
  46. Re: image attachment (Kalin Mintchev 2002)
  47. Re: image attachment (Alain Russell 2002)
  48. Re: image attachment (Alain Russell 2002)
  49. image attachment (Kalin Mintchev 2002)
  50. Re: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  51. Re: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  52. Re: Sendmail - Attachment / My First Post (Scott Anderson 2001)
  53. Re: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  54. Re: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  55. Re: Sendmail - Attachment / My First Post (Scott Anderson 2001)
  56. Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  57. Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  58. attachment stupidity... (Anthony Tribby 2001)
  59. Re: Plaintext Email Attachment (Rob Marquardt 2001)
  60. Re: Plaintext Email Attachment (Peter Werno 2001)
  61. Plaintext Email Attachment (Clint Davis 2001)
  62. Re: attachment (John Peacock 2000)
  63. Re: attachment (Paul Uttermohlen 2000)
  64. Re: attachment (John Peacock 2000)
  65. Re: attachment (Tony Frenzel 2000)
  66. Re: attachment (Kenneth Grome 2000)
  67. Re: attachment (Tony Frenzel 2000)
  68. Re: attachment (Kenneth Grome 2000)
  69. Re: attachment (Rob Marquardt 2000)
  70. Re: attachment (John Peacock 2000)
  71. Re: attachment (Tony Frenzel 2000)
  72. Re: attachment (John Peacock 2000)
  73. attachment (Tony Frenzel 2000)
  74. Email Attachments - Webcat (RH Prouty 1998)
  75. Re: Email Attachments (Peter Ostry 1998)
  76. Re: Email Attachments (Kenneth Grome 1998)
  77. Email Attachments (Brian B. Burton 1998)
  78. Re: Sendmail and attachments? (Kenneth Grome 1998)
  79. Sendmail and attachments? (Steve Rosenbaum 1998)
  80. Re: E-mail Attachments (Kenneth Grome 1997)
  81. Re: E-mail Attachments (Lawrence Cheung 1997)
  82. E-mail Attachments (Pat McCormick 1997)
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.com From: zzz Subject: Purchase [purchaseNum], zzz Date: [emailDate] MIME-Version:1.0 Content-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=4341524F Content-Disposition: inline; filename=[purchaseNum].pdf [include file=order/[cart].pdf&raw=T] --[boundary]--[/writefile]Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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)