Re: AAAH: stupid sendmail
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39582
interpreted = N
texte = Comments inline. But first a (probably pointless) plea to not post codewith embedded HTML tags unless that is vital to what you are having aproblem with. All of that
stuff below is just noise...Ron Ceballos wrote:> > [orderfile cart=[cart]]> > [lineitems]> > [SetLineItem> cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/int> erpret]&textA=[url][lookup> db=catalog.db&lookinfield=SKU&value=[url][SKU][/url]&returnfield=ProductType> ][/url][/SetLineItem]> [/lineitems]> > [lineItems]> [lineIndex] [SKU] [textA][quantity]> > [text]varSKU=[SKU][/text]> [text]vartextA=[textA][/text]> [text]varquantity=[quantity][/text]> [text]varcart=[cart][/text]> You do realize, I hope, that by placing the [sendmail] inside the [lineitem] context (and not the reverse) you are going to be sendinga single e-mail for each line item. NOTE: this could be what you wantbut is usually not.> [showif [sendmail]=true][sendmailDon't EVER use a reserved WebDNA context/command as a form parameter.> to=ron@specsimple.com&from=visitor@aof.com&subject=renting]> I want to rent the [vartextA] with sku # [varSKU] in quantity: [varquantity]> > order number: [varcart]> > [Salutation] [FirstName] [lastname]> [Title]> [Company]> [Occupation]> [Address1]> [Address2]> [City], [State] [Zip]> [Country]> Tel: [Phone] fax: [fax]> [Email]> [Website]> [/sendmail]> [/showif]> [/lineItems]>
Unless you plan on creating HTML e-mail, all of this
businessinside the [sendmail] is pointless.>
>
> [/orderfile]Here is where the [orderfile context stops. If the text after thispoint shows anything, it means that the order file fields are not setand you only have form variables to play with. That is your real problem. Open up a sample order file and see if there is anything in the header.When you add an item to the cart, if you also include any extra fieldsin the command (or as part of a form submission), then the corresponding header fields will be filled in. Or, you can set theheader fields yourself using [setheader]. This is commonly done byprepending an underscore on the form fields then walking through on the subsequent page and setting the header fields.HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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:
Comments inline. But first a (probably pointless) plea to not post codewith embedded HTML tags unless that is vital to what you are having aproblem with. All of that stuff below is just noise...Ron Ceballos wrote:> > [orderfile cart=[cart]]> > [lineitems]> > [SetLineItem> cart=[cart]&index=[lineindex]]quantity=[interpret][quantity[lineindex]][/int> erpret]&textA=[url][lookup> db=catalog.db&lookinfield=SKU&value=[url][SKU][/url]&returnfield=ProductType> ][/url][/SetLineItem]> [/lineitems]> > [lineitems]> [lineIndex] [SKU] [textA][quantity]> > [text]varSKU=[SKU][/text]> [text]vartextA=[textA][/text]> [text]varquantity=[quantity][/text]> [text]varcart=[cart][/text]> You do realize, I hope, that by placing the [sendmail] inside the [lineitem] context (and not the reverse) you are going to be sendinga single e-mail for each line item. NOTE: this could be what you wantbut is usually not.> [showif [sendmail]=true][sendmailDon't EVER use a reserved WebDNA context/command as a form parameter.> to=ron@specsimple.com&from=visitor@aof.com&subject=renting]> I want to rent the [vartextA] with sku # [varSKU] in quantity: [varquantity]> > order number: [varcart]> > [Salutation] [FirstName] [lastname]> [Title]> [Company]> [Occupation]> [Address1]> [Address2]> [City], [State] [Zip]> [Country]> Tel: [Phone] fax: [fax]> [Email]> [Website]> [/sendmail]> [/showif]> [/lineItems]>
Unless you plan on creating HTML e-mail, all of this