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:

Custom WebCat Prefs ... (1997) WCS Newbie question (1997) Mult-File Upload w/ Web Star (2000) Upgrade to 3.07 problems (2000) WebDNA install on Tiger doesn't work ... (2005) More on the email templates (1997) View Source from cache (1997) Ampersand (1997) ThreadMem ignored? (1998) Appending current [date] to a database (1997) Help! WebCat2 bug (1997) Re:listfiles-looking for slick solution (1997) [WebDNA] v7 problem? (2012) shoppingcart reload qty (1997) more info on [setlineitems] (1997) How to verify email address (1997) More DateMath problems (1997) RE: Error: template (1997) Part 2 - [showif] if variable exists (1998) [OT] Accepting Credit Cards Online (1999)