> So I thought to add a rake task...maybe we can add a page that call > in ajax > the controller that send 20 emails each request but I don't know..
I think it's best to add instructions on how to easily schedule the rake task to be called every 5 minutes or so. Relying on an Ajax call sending 20 pr. call sounds pretty vulnerable to me. > An other problem is that every time you send a mail, the controller > loop > through all the subscribers to create a new NewsletterEmail. > Does exist a way to do it better? Well, it could probably be optimized to a single query using an INSERT ... SELECT statement, but since it an admin call it's not really a big issue I think. > Do you want to add that image just to track how many times the email > is > opened? Well, yes. Clients seem to be pretty happy about knowing how many of the recpients has actually opened the newsletter, and how many of them clicks the links in it. It just a call to a controller returning a 1x1 transparent pixel (http://en.wikipedia.org/wiki/Web_beacons). On 07/01/2008, at 18:08, Andrea Franz wrote: > On Jan 7, 2008 4:49 PM, Casper Fabricius <[EMAIL PROTECTED]> > wrote: > >> Hi Andrea, >> >> Nice work with this extension. I'm going to use it for my current >> Radiant project. I'm not so sure I like the idea of having to setup a >> scheduled task to call the rake task at intervals to get newsletters >> sent, but on the other hand it's not very nice to make mongrel send >> them immediately either. >> > > Thanks for your support Casper :) > I think that if you have more than 200 subscribers, it's impossible > to send > all the emails during a request. > So I thought to add a rake task...maybe we can add a page that call > in ajax > the controller that send 20 emails each request but I don't know.. > An other problem is that every time you send a mail, the controller > loop > through all the subscribers to create a new NewsletterEmail. > Does exist a way to do it better? > > >> >> I'm planning to add some basic tracking stuff to your extension. I >> was >> thinking to add two tags: >> >> <r:newsletter:tracking:bug /> (inserts an image tag which invokes the >> server when the user opens the newsletter. This should be inserted in >> the newsletter layout) >> <r:newsletter:tracking:link url="...">...</ >> r:newsletter:tracking:link> >> (wrapping links so the clicks are tracked before the user is >> redirected to the given url) >> >> - but the bug could also be inserted always, and all links could be >> wrapped automatically. >> >> What do you think? >> > > Do you want to add that image just to track how many times the email > is > opened? > > > > -- > Andrea Franz > http://gravityblast.com - http://nimboo.net > _______________________________________________ > Radiant mailing list > Post: Radiant@lists.radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant _______________________________________________ Radiant mailing list Post: Radiant@lists.radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant