Re: Sendmail - Attachment / My First Post

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39401
interpreted = N
texte = What version of WebCatalog are you running? And on what platform?The line_ending text variable is used to store the line breaks expected for the platform WebCatalog is running on. The WebCatalog mail thread that monitors the EmailFolder expects the correct line breaks. I used the line_ending variable to simplify porting the code to other platforms.Line Breaks: Platform character (URL/hex code) MAC CR %0D Windows CRLF %0D%0A UNIX LF %0ACR = Carriage Return LF = LineFeedJust un-comment the line_ending initialization line that matches your platform.Also, be sure you have not included extra line breaks as a result of my example text being 'wrapped' in you email client.For example:[sendmail to=[cusemail]&from=isp@montanasky.net&subject=TestingBinary Attachment&MIME-version=1.0&Content-Type=multipart/mixed;boundary=[boundary ]][!]should be on one line in you template.The [unurl] tags convert the URL-Hex code back to the actual or character.> -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Joseph Sullivan > Sent: Tuesday, October 16, 2001 12:02 PM > To: WebCatalog Talk > Subject: Re: Sendmail - Attachment / My First Post > > > Mr. Anderson, > > This didn't work, but I am sure that I am doing something > wrong, Maybe you > wouldn't mind commenting the code for me, IE Explain what the > tags mean, and > what they are for. Like [unurl] and[line_ending] Thanks for > you help. > > > =====MY CODE===== > > [sendmail to=[cusemail]&from=isp@montanasky.net&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 a word document attachment: > > --[boundary][unurl][line_ending][/unurl][!] > [/!]Content-Type: > application/msword;name=[word.doc][unurl][line_ending][/unurl][!] > [/!]Content-Transfer-Encoding: base64[unurl][line_ending][/unurl][!] > [/!]Content-Disposition: attachment; > filename=[word.doc][unurl][line_ending][line_ending][/unurl][!] > [/!] > [encrypt method=base64&file=[word.doc]&EMAILFORMAT=T][/encrypt] > > --[boundary]-- > [/sendmail] > > > Joseph Sullivan > Mooseweb Corp > joe@mooseweb.com > (406) 889-3410 > ----- Original Message ----- > From: Scott Anderson > To: WebCatalog Talk > Sent: Monday, October 15, 2001 2:23 PM > Subject: Re: Sendmail - Attachment / My First Post > > > > Here is how I have done this. You may need to adjust the > [line_ending] > > value. > > > > ... > > [text]boundary=Multipart_[date]_[time]_[cart][/text] > > > > [text]line_ending=%0D%0A[/text] > > [!][text]line_ending=%0D[/text][/!] > > [!][text]line_ending=%0A[/text][/!] > > > > [text]attach_filename=Test.doc[/text] > > > > [sendmail > to=test@yourdomain.com&from=test@yourdomain.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 a word document attachment: > > > > --[boundary][unurl][line_ending][/unurl][!] > > [/!]Content-Type: > > > application/msword;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] > > ... > > > > > > > > > > > > > -----Original Message----- > > > From: WebCatalog Talk > [mailto:WebDNA-Talk@talk.smithmicro.com]On > > > Behalf Of Joseph Sullivan > > > Sent: Monday, October 15, 2001 6:12 AM > > > To: WebCatalog Talk > > > Subject: Sendmail - Attachment / My First Post > > > > > > > > > Greetings, > > > > > > This is the first of my soon to be many posts to this > > > talk list. I hope > > > to be as much of a help to others as I know you all will > be to me. I > > > thank-you in advance for your patience with me. > > > > > > Currently I am working on a project that I have been able > > > to work on > > > without asking any questions, and by just searching the > > > archives. Now I > > > have come to a river I can't cross. I need to attach a word > > > doc to a email, > > > that will be sent out to our customer. I have read numerous > > > posting on this > > > subject but to no avail. Could someone that has figured this > > > out please > > > advise me as to how to do it? I hope I am giving enough > > > information about > > > my question. To sum it up.... > > > > > > I need to send a word doc file to my customer as an > > > attachment using the > > > [sendmail] context. > > > > > > All help is greatly appreciated.... > > > > > > > > > Joseph Sullivan > > > Mooseweb Corp > > > joe@mooseweb.com > > > (406) 889-3410 > > > > > > > > > ------------------------------------------------------------- > > > 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/ > > > > ------------------------------------------------------------- > > 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/ > > > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  2. Re: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  3. Re: Sendmail - Attachment / My First Post (Scott Anderson 2001)
  4. Re: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  5. Re: Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  6. Re: Sendmail - Attachment / My First Post (Scott Anderson 2001)
  7. Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
  8. Sendmail - Attachment / My First Post (Joseph Sullivan 2001)
What version of WebCatalog are you running? And on what platform?The line_ending text variable is used to store the line breaks expected for the platform WebCatalog is running on. The WebCatalog mail thread that monitors the EmailFolder expects the correct line breaks. I used the line_ending variable to simplify porting the code to other platforms.Line Breaks: Platform character (URL/hex code) MAC CR %0D Windows CRLF %0D%0A UNIX LF %0ACR = Carriage Return LF = LineFeedJust un-comment the line_ending initialization line that matches your platform.Also, be sure you have not included extra line breaks as a result of my example text being 'wrapped' in you email client.For example:[sendmail to=[cusemail]&from=isp@montanasky.net&subject=TestingBinary Attachment&MIME-version=1.0&Content-Type=multipart/mixed;boundary=[boundary ]][!]should be on one line in you template.The [unurl] tags convert the URL-Hex code back to the actual or character.> -----Original Message----- > From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On > Behalf Of Joseph Sullivan > Sent: Tuesday, October 16, 2001 12:02 PM > To: WebCatalog Talk > Subject: Re: Sendmail - Attachment / My First Post > > > Mr. Anderson, > > This didn't work, but I am sure that I am doing something > wrong, Maybe you > wouldn't mind commenting the code for me, IE Explain what the > tags mean, and > what they are for. Like [unurl] and[line_ending] Thanks for > you help. > > > =====MY CODE===== > > [sendmail to=[cusemail]&from=isp@montanasky.net&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 a word document attachment: > > --[boundary][unurl][line_ending][/unurl][!] > [/!]Content-Type: > application/msword;name=[word.doc][unurl][line_ending][/unurl][!] > [/!]Content-Transfer-Encoding: base64[unurl][line_ending][/unurl][!] > [/!]Content-Disposition: attachment; > filename=[word.doc][unurl][line_ending][line_ending][/unurl][!] > [/!] > [encrypt method=base64&file=[word.doc]&EMAILFORMAT=T][/encrypt] > > --[boundary]-- > [/sendmail] > > > Joseph Sullivan > Mooseweb Corp > joe@mooseweb.com > (406) 889-3410 > ----- Original Message ----- > From: Scott Anderson > To: WebCatalog Talk > Sent: Monday, October 15, 2001 2:23 PM > Subject: Re: Sendmail - Attachment / My First Post > > > > Here is how I have done this. You may need to adjust the > [line_ending] > > value. > > > > ... > > [text]boundary=Multipart_[date]_[time]_[cart][/text] > > > > [text]line_ending=%0D%0A[/text] > > [!][text]line_ending=%0D[/text][/!] > > [!][text]line_ending=%0A[/text][/!] > > > > [text]attach_filename=Test.doc[/text] > > > > [sendmail > to=test@yourdomain.com&from=test@yourdomain.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 a word document attachment: > > > > --[boundary][unurl][line_ending][/unurl][!] > > [/!]Content-Type: > > > application/msword;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] > > ... > > > > > > > > > > > > > -----Original Message----- > > > From: WebCatalog Talk > [mailto:WebDNA-Talk@talk.smithmicro.com]On > > > Behalf Of Joseph Sullivan > > > Sent: Monday, October 15, 2001 6:12 AM > > > To: WebCatalog Talk > > > Subject: Sendmail - Attachment / My First Post > > > > > > > > > Greetings, > > > > > > This is the first of my soon to be many posts to this > > > Talk List. I hope > > > to be as much of a help to others as I know you all will > be to me. I > > > thank-you in advance for your patience with me. > > > > > > Currently I am working on a project that I have been able > > > to work on > > > without asking any questions, and by just searching the > > > archives. Now I > > > have come to a river I can't cross. I need to attach a word > > > doc to a email, > > > that will be sent out to our customer. I have read numerous > > > posting on this > > > subject but to no avail. Could someone that has figured this > > > out please > > > advise me as to how to do it? I hope I am giving enough > > > information about > > > my question. To sum it up.... > > > > > > I need to send a word doc file to my customer as an > > > attachment using the > > > [sendmail] context. > > > > > > All help is greatly appreciated.... > > > > > > > > > Joseph Sullivan > > > Mooseweb Corp > > > joe@mooseweb.com > > > (406) 889-3410 > > > > > > > > > ------------------------------------------------------------- > > > 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/ > > > > ------------------------------------------------------------- > > 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/ > > > > ------------------------------------------------------------- > 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/------------------------------------------------------------- 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/ Scott Anderson

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:

WebCatalog stalls (1998) shownext & math (1997) Problems with [Applescript] (1997) Help! WebCat2 bug (1997) URGENT: NO BUG, woFIELDdata & FIELDword=ww (2002) Math Bug (1999) WebCat2 Append problem (B14Macacgi) (1997) plugin-acgi, different results (1997) Loss in Form (1998) How To question on setting up downloads (1997) Summarising on two fields (1998) show all problem (1997) Supressing Error Messages (1998) Interfacing WebMerchant to www.fedex.com (1997) Version Question (2000) cc auth with [purchase] (1998) [SHOWIF AND/OR] (1997) No. of items in shopping cart (2000) Quick ShowIf question (1997) emailer w/F2 (1997)