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:

(1997) GD Scumbucket Spammer (2004) problems with 2 tags (1997) Summing fields (1997) WebCat2 beta 11 - new prefs ... (1997) OT: Outsourcing & copyrights (2005) [SHOWIF AND/OR] (1997) Error Log Question (2003) hidden databases (2000) [subtotal] and others (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Has this happened to you? (was:Emailer Chokes on bad address) (1997) boldwords funky (1998) More on the email templates (1997) carriage returns in data (1997) url question (2002) info (1997) creator code (1997) Not really WebCat (1997) New Beta Documentation (1997)