Emails sent twice

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32509
interpreted = N
texte = Can anyone tell me why this is sending two emails instead of just one?I have a template for quoting stuff and if [Header24] is T it e-mails the QUOTEComplete.txt file. However, it is sending it TWICE. Can anyone see where my problem is at?Thanks! ************* Start of QuoteCompleted.tpl******************* [showIf [Header23]=T][writefile secure=F&file=../../../FAXOUT/[CART].TXT][include Quotefax.txt][/writefile][/showIf][writefile secure=F&file=/QUOTES/[CART].TXT][include Quotefax.txt][/writefile][HideIf [Header24]=F][include file=QUOTEComplete2.txt&v.email=[email]][/HideIf] Quotation



Quotation



Date: [date]
Time: [time]
Quote #: [CART]
Rep: [Rep]

Ship To
Bill To
[Header36][Header37]
[Name][ShipToName]
[Address1]
[Address2]
[CITY], [STATE] [ZIP]
[ShipToAddress1]
[ShipToAddress2]
[shipToCity], [shipToState] [shipToZip]
[Phone][ShipToPhone]
[email][ShipToemail]
Payment: [payMethod]
P.O./C.C. #: [accountNum] Expires: [expMonth] / [expYear]
Comments: [Header40]

Your Quotation Contains the Following Items

[lineItems] [/lineItems] $[format thousands .2f][subTotal][/format] [/ShowIf]
SKU
MFG #
Title
Manufacturer
QtyPriceExt.
[sku]
[mfgnum]
[title]
[category] {[lookup db=Media.db&lookinfield=Media&value=[media]&returnfield=type]} [showIf [textD]!]
Note: [textD][/showIf]
[quantity]$[format thousands .2f][price][/format]$[format thousands .2f][math][quantity]*[price][/math][/format]
Total
[ShowIf [GrandTotal]>1000](36 Month FMV Business Lease available for just $ [include file=LeaseRate.inc&Leaseprice=GrandTotal&returnfield=GrandTotal]/per month*)

************* End of QuoteCompleted.tpl******************* ************* Start of QuoteComplete2.txt******************* [SendMail to=[v.email]&subject=Quotation for [Name] of [Header36]&from=berk@voicenet.com&MIME-Version=1.0&Content-Type=text/html;ch arset=us-ascii] Quotation



Quotation



Date: [date]
Time: [time]
Quote #: [CART]
Rep: [Rep]

Ship To
Bill To
[Header36][Header37]
[Name][ShipToName]
[Address1]
[Address2]
[CITY], [STATE] [ZIP]
[ShipToAddress1]
[ShipToAddress2]
[shipToCity], [shipToState] [shipToZip]
[Phone][ShipToPhone]
[email][ShipToemail]
Payment: [payMethod]
P.O./C.C. #: [accountNum] Expires: [expMonth] / [expYear]
Comments: [Header40]

Your Quotation Contains the Following Items

[lineItems] [/lineItems] $[format thousands .2f][subTotal][/format] [/ShowIf]
SKU
MFG #
Title
Manufacturer
QtyPriceExt.
[sku]
[mfgnum]
[title]
[category] {[lookup db=Media.db&lookinfield=Media&value=[media]&returnfield=type]} [showIf [textD]!]
Note: [textD][/showIf]
[quantity]$[format thousands .2f][price][/format]$[format thousands .2f][math][quantity]*[price][/math][/format]
Total
[ShowIf [GrandTotal]>1000](36 Month FMV Business Lease available for just $ [include file=LeaseRate.inc&Leaseprice=GrandTotal&returnfield=GrandTotal]/per month*)

[showif [Header26]=T]
[/showif]
[/SendMail] ************* End of QuoteComplete2.txt*******************------------------------------------------------------------- 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: emails sent twice (Kalin Mintchev 2001)
  2. Re: emails sent twice (Kenneth Grome 2001)
  3. Re: emails sent twice (Kalin Mintchev 2001)
  4. Re: emails sent twice (Paul Fowler 2001)
  5. emails sent twice (Kalin Mintchev 2001)
  6. Re: Emails sent twice ( 2000)
  7. Re: Emails sent twice (Kenneth Grome 2000)
  8. Re: Emails sent twice ( 2000)
  9. Re: Emails sent twice (Anup Setty 2000)
  10. Re: Emails sent twice (Joseph D'Andrea 2000)
  11. Emails sent twice ( 2000)
Can anyone tell me why this is sending two emails instead of just one?I have a template for quoting stuff and if [Header24] is T it e-mails the QUOTEComplete.txt file. However, it is sending it TWICE. Can anyone see where my problem is at?Thanks! ************* Start of QuoteCompleted.tpl******************* [showIf [Header23]=T][writefile secure=F&file=../../../FAXOUT/[cart].TXT][include Quotefax.txt][/writefile][/showIf][writefile secure=F&file=/QUOTES/[cart].TXT][include Quotefax.txt][/writefile][HideIf [Header24]=F][include file=QUOTEComplete2.txt&v.email=[email]][/HideIf] Quotation



Quotation



Date: [date]
Time: [time]
Quote #: [cart]
Rep: [Rep]

Ship To
Bill To
[Header36][Header37]
[Name][ShipToName]
[Address1]
[Address2]
[CITY], [STATE] [ZIP]
[ShipToAddress1]
[ShipToAddress2]
[shipToCity], [shipToState] [shipToZip]
[Phone][ShipToPhone]
[email][ShipToemail]
Payment: [payMethod]
P.O./C.C. #: [accountNum] Expires: [expMonth] / [expYear]
Comments: [Header40]

Your Quotation Contains the Following Items

[cart]> [ipaddress]> [lineitems] [/lineItems] $[format thousands .2f][subTotal][/format] [/ShowIf]
SKU
MFG #
Title
Manufacturer
QtyPriceExt.
[sku]
[mfgnum]
[title]
[category] {[lookup db=Media.db&lookinfield=Media&value=[media]&returnfield=type]} [showIf [textD]!]
Note: [textD][/showIf]
[quantity]$[format thousands .2f][price][/format]$[format thousands .2f][math][quantity]*[price][/math][/format]
Total
[ShowIf [GrandTotal]>1000](36 Month FMV Business Lease available for just $ [include file=LeaseRate.inc&Leaseprice=GrandTotal&returnfield=GrandTotal]/per month*)

************* End of QuoteCompleted.tpl******************* ************* Start of QuoteComplete2.txt******************* [SendMail to=[v.email]&subject=Quotation for [Name] of [Header36]&from=berk@voicenet.com&MIME-Version=1.0&Content-Type=text/html;ch arset=us-ascii] Quotation



Quotation



Date: [date]
Time: [time]
Quote #: [cart]
Rep: [Rep]

Ship To
Bill To
[Header36][Header37]
[Name][ShipToName]
[Address1]
[Address2]
[CITY], [STATE] [ZIP]
[ShipToAddress1]
[ShipToAddress2]
[shipToCity], [shipToState] [shipToZip]
[Phone][ShipToPhone]
[email][ShipToemail]
Payment: [payMethod]
P.O./C.C. #: [accountNum] Expires: [expMonth] / [expYear]
Comments: [Header40]

Your Quotation Contains the Following Items

[lineitems] [/lineItems] $[format thousands .2f][subTotal][/format] [/ShowIf]
SKU
MFG #
Title
Manufacturer
QtyPriceExt.
[sku]
[mfgnum]
[title]
[category] {[lookup db=Media.db&lookinfield=Media&value=[media]&returnfield=type]} [showIf [textD]!]
Note: [textD][/showIf]
[quantity]$[format thousands .2f][price][/format]$[format thousands .2f][math][quantity]*[price][/math][/format]
Total
[ShowIf [GrandTotal]>1000](36 Month FMV Business Lease available for just $ [include file=LeaseRate.inc&Leaseprice=GrandTotal&returnfield=GrandTotal]/per month*)

[showif [Header26]=T]
[cart]>
[/showif]
[/SendMail] ************* End of QuoteComplete2.txt*******************------------------------------------------------------------- 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/

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:

Multiple prices (1997) Re[2]: Price Not Appearing [LONG] (2000) Nav. 4 probs with cart - Serious problem (1997) redirect with frames (1997) Quit revisited (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) emailer on Windows Beta 18 (1997) RE: Error -108 (1997) webcat nt (1997) SMITH MICRO: FW: Emailer stops on Win 2000 (2002) UnitShipCost, Formulas.db and passwords (2003) Fun with dates (1997) sort problems....bug or brain fart? (1997) Re2: frames & carts (1997) WebCommerce: Folder organization ? (1997) reserved characters for field names? (1998) process SSI (1998) Feature req. (2002) Add a field to the error log? (1997) Maybe off topic but how to charge (1997)