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.ThierryHere'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]startSubscriber-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:
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.ThierryHere'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]startSubscriber-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:
FW: Virus Alert: FBI Finds 911 Virus Wiping Out Hard DrivesToday (2000)
Help name our technology! (1997)
WebCatalog2 Feature Feedback (1996)
Multiple prices (1997)
Browser Problem?!? Still getting Error message using (1997)
won't serve .tpl -index.tpl gone, made test.tpl (2000)
Emailer port change (1997)
docs for WebCatalog2 (1997)
searchable list archive (1997)
WebCatalog [FoundItems] Problem - AGAIN - (1997)
New to WebCat, Help. (1998)
Instructions for Digest (1997)
[Fwd: F3 database munching] (1997)
[WebDNA] current thinking on architecture of mass email scripts? (2011)
[WebDNA] db admin tool (2008)
quitting (1997)
Permissions Ignored - PLEASE HELP (2003)
Shopping cart not being assigned (1999)
Great product and great job ! (1997)
[showif] based on data from [tcpconnect][tcpsend]? (2000)