Re: [WebDNA] Multiple e-mail sending
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107714
interpreted = N
texte = This is a multi-part message in MIME format.--------------060800050506090807040104Content-Type: text/plain; charset=UTF-8; format=flowedContent-Transfer-Encoding: 7bitTommy,I've attached a small .tpl file I use for what you want.It should give you a good starting point...MarcOn 11/17/2011 11:19 AM, tommy@enkelthed.dk wrote:> Hello>> I've got a query that will supply me with a table of customers that I> display on the webpage,>> once the user has confirmed the list, I want to be able to click a button> and send the same email to each of these customers, informing them that> their products are ready for them to pickup.>> Now I can send a single email by hardcoding the email into the sendmail> code, but I'd like to be able to send one for each of these customers.>> Any ideas?>> I've tried with>>> [showif [butik]=store1]> [arrayset name=clients_email&dim=1]> (1)=[email]> [/arrayset]>>> [/showif]> but it only persists until the template is reloaded, which means it won't> be fed to the form when i click sendmail>> Im all out of idea's, I dont want to have to make another call to the DB> as I think the call that provides the table in the first place should be> enough to somehow store this information until i hit the send button.>> I was considering saving it in a flatfile db, of the internal webdna kind,> but i've never worked with those - and I havent got a clue on what to do> about it.>> Its late i've had a long day, if anyone can offer some advice on what I> atleast could try I would be grateful.>> Regards> Tommy> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to:> archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us-- -------------------------------------------Marc ThompsonSoftware EngineerMedia SolutionsUniversity Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu---------------------------------------------------------060800050506090807040104Content-Type: text/html; name="get_emails.tpl"Content-Transfer-Encoding: base64Content-Disposition: attachment; filename="get_emails.tpl"PCEtLUhBU19XRUJETkFfVEFHUy0tPg0KW3Byb3RlY3QgQURNSU5dDQoNCjxodG1sPg0KPGhlYWQ+DQogIDx0aXRsZT5lbWFpbCBhZGRyZXNzZXM8L3RpdGxlPg0KICA8bWV0YSBuYW1lPSJyb2JvdHMiIGNvbnRlbnQ9Im5vaW5kZXgsIG5vZm9sbG93Ij4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T10cnVlXQ0KICBbVGV4dF1hZGRyZXNzZXM9W0dyZXAgc2VhcmNoPVssXSZyZXBsYWNlPS9dW2FkZHJlc3Nlc11bL0dyZXBdWy9UZXh0XQ0KICBbVGV4dF1hZGRyZXNzZXM9W0dyZXAgc2VhcmNoPVsgXSZyZXBsYWNlPV1bYWRkcmVzc2VzXVsvR3JlcF1bL1RleHRdDQoNCiAgIFtMaXN0UGF0aCBwYXRoPVthZGRyZXNzZXNdXQ0KICAgICBbc2VuZG1haWwgdG89W25hbWVdJmZyb209W19mcm9tXSZzdWJqZWN0PVtfc3ViamVjdF1dDQpbX2JvZHldDQogICAgIFsvc2VuZG1haWxdDQoNCgkJW21hdGggc2hvdz1mXW51bT1bbnVtXSsxWy9tYXRoXQ0KICAgWy9MaXN0UGF0aF0NCg0KICA8aDI+W251bV0gbWVzc2FnZXMgc2VudC48L2gyPg0KICA8aDM+PGEgaHJlZj0iQWRtaW5TZWFyY2gudHBsIj5CYWNrIHRvIFNlYXJjaDwvYT48L2gzPg0KWy9TaG93SWZdDQoNCiAgW2NvbW1pdGRhdGFiYXNlIGRiPWNvbnRhY3QuZGJdDQogIFtjb21taXRkYXRhYmFzZSBkYj1Vc2Vycy5kYl0NCg0KDQoNCjwvYm9keT4NCjwvaHRtbD4NCg0K--------------060800050506090807040104--
Associated Messages, from the most recent to the oldest:
This is a multi-part message in MIME format.--------------060800050506090807040104Content-Type: text/plain; charset=UTF-8; format=flowedContent-Transfer-Encoding: 7bitTommy,I've attached a small .tpl file I use for what you want.It should give you a good starting point...MarcOn 11/17/2011 11:19 AM, tommy@enkelthed.dk wrote:> Hello>> I've got a query that will supply me with a table of customers that I> display on the webpage,>> once the user has confirmed the list, I want to be able to click a button> and send the same email to each of these customers, informing them that> their products are ready for them to pickup.>> Now I can send a single email by hardcoding the email into the sendmail> code, but I'd like to be able to send one for each of these customers.>> Any ideas?>> I've tried with>>> [showif [butik]=store1]> [arrayset name=clients_email&dim=1]> (1)=[email]> [/arrayset]>>> [/showif]> but it only persists until the template is reloaded, which means it won't> be fed to the form when i click sendmail>> Im all out of idea's, I dont want to have to make another call to the DB> as I think the call that provides the table in the first place should be> enough to somehow store this information until i hit the send button.>> I was considering saving it in a flatfile db, of the internal webdna kind,> but i've never worked with those - and I havent got a clue on what to do> about it.>> Its late i've had a long day, if anyone can offer some advice on what I> atleast could try I would be grateful.>> Regards> Tommy> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list.> To unsubscribe, E-mail to:> archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us-- -------------------------------------------Marc ThompsonSoftware EngineerMedia SolutionsUniversity Information TechnologyUniversity of Utah801.585.9264marc.thompson@utah.edu---------------------------------------------------------060800050506090807040104Content-Type: text/html; name="get_emails.tpl"Content-Transfer-Encoding: base64Content-Disposition: attachment; filename="get_emails.tpl"PCEtLUhBU19XRUJETkFfVEFHUy0tPg0KW3Byb3RlY3QgQURNSU5dDQoNCjxodG1sPg0KPGhlYWQ+DQogIDx0aXRsZT5lbWFpbCBhZGRyZXNzZXM8L3RpdGxlPg0KICA8bWV0YSBuYW1lPSJyb2JvdHMiIGNvbnRlbnQ9Im5vaW5kZXgsIG5vZm9sbG93Ij4NCiAgPG1ldGEgaHR0cC1lcXVpdj0icHJhZ21hIiBjb250ZW50PSJuby1jYWNoZSI+DQogIDxsaW5rIHJlbD0ic3R5bGVzaGVldCIgaHJlZj0iY29udGFjdC5jc3MiPg0KPC9oZWFkPg0KPGJvZHkgYmdjb2xvcj0iI2ZmZmZmZiI+DQpbbWF0aCBzaG93PWZdbnVtPTEtMVsvbWF0aF0NCltUZXh0XXNlYXJjaF9zdHJpbmc9Wy9UZXh0XQ0KDQpbU2hvd0lmIFtzdGFydGF0XT0xXQ0KPGZvcm0gbWV0aG9kPSJwb3N0IiBhY3Rpb249ImdldF9lbWFpbHMudHBsIj4NCiAgW3NlYXJjaCBkYj1jb250YWN0LmRiJltmb3JtdmFyaWFibGVzXVtuYW1lXT1b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gWy9MaXN0UGF0aF0NCg0KICA8aDI+W251bV0gbWVzc2FnZXMgc2VudC48L2gyPg0KICA8aDM+PGEgaHJlZj0iQWRtaW5TZWFyY2gudHBsIj5CYWNrIHRvIFNlYXJjaDwvYT48L2gzPg0KWy9TaG93SWZdDQoNCiAgW2NvbW1pdGRhdGFiYXNlIGRiPWNvbnRhY3QuZGJdDQogIFtjb21taXRkYXRhYmFzZSBkYj1Vc2Vycy5kYl0NCg0KDQoNCjwvYm9keT4NCjwvaHRtbD4NCg0K--------------060800050506090807040104--
Marc Thompson
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:
WebDNA Developer Resource Center (2002)
Bad cookie (1998)
WebCat editing, SiteGuard & SiteEdit (1997)
WebCatalog 2.1b4/Mac available (1997)
2.0 Info (1997)
FW: WebDNA-Talk searchable? (1997)
Customizing WebDelivery.html (1998)
Thanks Grant (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
ASP and WebDNA (1998)
Searching multiple fields (1997)
Superfilous Characters (1998)
Not really WebCat (1997)
Nested Loops and SHOWIFs (1997)
db protection on NT (1997)
bannerads example idiot (1997)
Revisit: speed test (2002)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
REDIRECT MULTIPLE RESULTS (2000)
math on date? (1997)