Your right it is rather odd and the reason being is that in the backend code for whatever reason the Send button points to the wrong function. You can just change what function it calls on the backend to the sending function and low and behold it works. I have done that, it is a simple change to make and it works wonders.
Change this code in file:
app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid/Renderer/Action.php
Note: This method of overwriting this block is not upgrade proof. I haven’t done it the correct way yet just so you know.
EDIT:
This will send but it will bring you to a blank page and that is not ideal so change this code to redirect back to the grid view.
File: /app/code/Mage/Adminhtml/controllers/Newsletter/QueueController.php
Original:
public function sendingAction() { // Todo: put it somewhere in config! $countOfQueue = 3; $countOfSubscritions = 20;
So I think I’ll just create a “send now” button and correctly override the controller. The scripts above are helpful @alistek. Much appreciated.
My only question, how does the send process work?
- does it send ALL pending newsletters that haven’t been sent yet?
- does it only send the last pending newsletter? (what If I have 2+ pending newsletters waiting to be sent?)
I updated the code, but it still doesn’t seem to send. When I select Start from the dropdown, it brings me back to the Queue and it says Not Started. Any thoughts, I am in version 1.0 still.
Hey there, I’ll try to post the files in a zip folder that I’ve changed and corrected the issues with.
I’ve created a “Send Newsletter” button just for easier use (though the “start” feature should work via version 1.0), and added the correct redirection code in.
Would this help solve your issues?
If so, I’ll try to post them soon. How urgent is your issue?
Save & refresh...da da!
Your backoffice now has a simple link that will send your newsletter that you already have in the queue. It is basic...but it works!
Manu
and it automatically send enqueued newsletters, those with defined start date (send it on due date, of course).
If date of starting newsletter was not defined, it need choosing “Start” from dropdown on queue list first, then cron do the sending on next sheduled run.
When you turn on above mentioned crontab - then alistek’s changes to core files are NOT neccesary!!! Unless you need instant sending of scheduled ahead newsletters.
When you turn on above mentioned crontab - then alistek’s changes to core files are NOT neccesary!!! Unless you need instant sending of scheduled ahead newsletters.