Re: sending two mails from one template

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59759
interpreted = N
texte = Joe, my code is not to complicated ... I guess it's an issue with the MailerApplication, cause the Mailfiles get written properly. The Mailer App put's the files in the completed folder and in the log it notes the error 0. In the meantime I found a workaround; I placed a loop between the two include tags. The loop makes a calculation that takes the server 20 Seconds to calculate -> then both mails get's sent. But this can't be the real solution ... This solution is running on W*V, I have not tested it on our apache. Thierry Here's the code: [include file=include/mail_addlist.inc] [include file=include/mail_subscribe_user.inc] -- That's the second include -- [SendMail to=autoaddlist@[pref_host][hideif [pref_host]=].[/hideif][pref_domain]&from=[adminaccount]&subject=listtest] filename: [g_sku] start Subscriber-List-Access: [Subscriber-List-Access] Finger-Access: [Finger-Access] Finger-Info: [Finger-Info] List-Address-Expansion-Style: [List-Address-Expansion-Style] List-Approved-Posters: [List-Approved-Posters] List-Digest-Restriction: [List-Digest-Restriction] List-Digest-Schedule: [List-Digest-Schedule] List-Epilogue: [List-Epilogue] List-Headers-To-Add: [List-Headers-To-Add] List-Headers-To-Remove: [List-Headers-To-Remove] List-Local-Domains: [List-Local-Domains] List-Local-Subscriber-Policy: [List-Local-Subscriber-Policy] List-Locked: [List-Locked] List-Long-Info: [List-Long-Info] List-Max-Kbytes-Per-Day: [List-Max-Kbytes-Per-Day] List-Max-Message-Kbytes: [List-Max-Message-Kbytes] List-Max-Messages-Per-Day: [List-Max-Messages-Per-Day] List-Max-Subscribers: [List-Max-Subscribers] List-Moderate-Unsubscriptions: [List-Moderate-Unsubscriptions] List-Moderation-Method: [List-Moderation-Method] List-Name: [List-Name] List-Nonsubscriber-Posting-Policy: [List-Nonsubscriber-Posting-Policy] List-Other-Rewrites: [List-Other-Rewrites] List-Owners: [List-Owners] List-Priority: [List-Priority] List-Prologue: [List-Prologue] List-Remote-Subscriber-Policy: [List-Remote-Subscriber-Policy] List-Remove-X-Headers: [List-Remove-X-Headers] List-Request-Detection: [List-Request-Detection] List-Short-Info: [List-Short-Info] List-Stats-Mode: [List-Stats-Mode] List-Subscriber-Posting-Policy: [List-Subscriber-Posting-Policy] List-Suppress-Duplicates: [List-Suppress-Duplicates] List-Suppress-Notifications: [List-Suppress-Notifications] List-Unsubscribe-Info: [List-Unsubscribe-Info] List-Verify-Subscriptions: [List-Verify-Subscriptions] List-Verify-Unsubscriptions: [List-Verify-Unsubscriptions] List-Welcome-Info: [List-Welcome-Info] ListMgr-SMTP-Address: [ListMgr-SMTP-Address] ListOwner-SMTP-Address: [ListOwner-SMTP-Address] SMTP-Address: [SMTP-Address] end[/sendmail] -- That's the second include -- [SendMail from=[adminaccount]&to=autoliston@[pref_host][hideif [pref_host]=].[/hideif][pref_domain]&subject=subscribeusers] [search db=db/po_u_x_g.txt&eqg_skudatarq=[g_sku]&eqdom_iddatarq=[dom_id]][founditems] listname: [List-Name] user: [Lookup db=db/po_users.txt&value=[u_sku]&lookInField=u_sku&returnField=user¬Found=]@[Lookup db=db/po_users.txt&value=[u_sku]&lookInField=u_sku&returnField=domain¬Found=] [/founditems] [/search] [/sendmail] >We frequently send one, two, three or more e-mails per template >execution including many that are contained within showif/hideif >contexts. We even have occasion to have [showif...] contexts within >the [sendmail...] context. > >What's you're code look like. > >~joe > >------------------------------------------------------------- >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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: sending two mails from one template ( Thierry Almy 2004)
  2. Re: sending two mails from one template ( Joe D'Andrea 2004)
  3. sending two mails from one template ( Thierry Almy 2004)
Joe, my code is not to complicated ... I guess it's an issue with the MailerApplication, cause the Mailfiles get written properly. The Mailer App put's the files in the completed folder and in the log it notes the error 0. In the meantime I found a workaround; I placed a loop between the two include tags. The loop makes a calculation that takes the server 20 Seconds to calculate -> then both mails get's sent. But this can't be the real solution ... This solution is running on W*V, I have not tested it on our apache. Thierry Here's the code: [include file=include/mail_addlist.inc] [include file=include/mail_subscribe_user.inc] -- That's the second include -- [SendMail to=autoaddlist@[pref_host][hideif [pref_host]=].[/hideif][pref_domain]&from=[adminaccount]&subject=listtest] filename: [g_sku] start Subscriber-List-Access: [Subscriber-List-Access] Finger-Access: [Finger-Access] Finger-Info: [Finger-Info] List-Address-Expansion-Style: [List-Address-Expansion-Style] List-Approved-Posters: [List-Approved-Posters] List-Digest-Restriction: [List-Digest-Restriction] List-Digest-Schedule: [List-Digest-Schedule] List-Epilogue: [List-Epilogue] List-Headers-To-Add: [List-Headers-To-Add] List-Headers-To-Remove: [List-Headers-To-Remove] List-Local-Domains: [List-Local-Domains] List-Local-Subscriber-Policy: [List-Local-Subscriber-Policy] List-Locked: [List-Locked] List-Long-Info: [List-Long-Info] List-Max-Kbytes-Per-Day: [List-Max-Kbytes-Per-Day] List-Max-Message-Kbytes: [List-Max-Message-Kbytes] List-Max-Messages-Per-Day: [List-Max-Messages-Per-Day] List-Max-Subscribers: [List-Max-Subscribers] List-Moderate-Unsubscriptions: [List-Moderate-Unsubscriptions] List-Moderation-Method: [List-Moderation-Method] List-Name: [List-Name] List-Nonsubscriber-Posting-Policy: [List-Nonsubscriber-Posting-Policy] List-Other-Rewrites: [List-Other-Rewrites] List-Owners: [List-Owners] List-Priority: [List-Priority] List-Prologue: [List-Prologue] List-Remote-Subscriber-Policy: [List-Remote-Subscriber-Policy] List-Remove-X-Headers: [List-Remove-X-Headers] List-Request-Detection: [List-Request-Detection] List-Short-Info: [List-Short-Info] List-Stats-Mode: [List-Stats-Mode] List-Subscriber-Posting-Policy: [List-Subscriber-Posting-Policy] List-Suppress-Duplicates: [List-Suppress-Duplicates] List-Suppress-Notifications: [List-Suppress-Notifications] List-Unsubscribe-Info: [List-Unsubscribe-Info] List-Verify-Subscriptions: [List-Verify-Subscriptions] List-Verify-Unsubscriptions: [List-Verify-Unsubscriptions] List-Welcome-Info: [List-Welcome-Info] ListMgr-SMTP-Address: [ListMgr-SMTP-Address] ListOwner-SMTP-Address: [ListOwner-SMTP-Address] SMTP-Address: [SMTP-Address] end[/sendmail] -- That's the second include -- [SendMail from=[adminaccount]&to=autoliston@[pref_host][hideif [pref_host]=].[/hideif][pref_domain]&subject=subscribeusers] [search db=db/po_u_x_g.txt&eqg_skudatarq=[g_sku]&eqdom_iddatarq=[dom_id]][founditems] listname: [List-Name] user: [Lookup db=db/po_users.txt&value=[u_sku]&lookInField=u_sku&returnField=user¬Found=]@[Lookup db=db/po_users.txt&value=[u_sku]&lookInField=u_sku&returnField=domain¬Found=] [/founditems] [/search] [/sendmail] >We frequently send one, two, three or more e-mails per template >execution including many that are contained within showif/hideif >contexts. We even have occasion to have [showif...] contexts within >the [sendmail...] context. > >What's you're code look like. > >~joe > >------------------------------------------------------------- >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://webdna.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://webdna.smithmicro.com/ Thierry Almy

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:

Encyption mail (1998) FTP upload TCP Connect (2003) remotely creating and populating a stock inventory db -almost there! (1999) Bug Report, maybe (1997) Separate SSL Server (1997) Less than or equal to........ (1997) grep matching (2003) So when do we get something similar? (1998) Spiders (1998) Leap Day Triggers (2000) [OT]Applescript/.db (was:FTP to WebStar) (2001) Simple Store (2000) problems with 2 tags (1997) RE: [taxRate] [TaxTotal] ? (1997) NT b19 sends extra MIME headers (1997) convertwords BUG (2002) How to Sort Summ data ? (1997) Text Area - Line Breaks (1998) calculating tax rates, mail order solutions and version 2 (1997) Logging purchases (1997)