Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Newsletter sends 20 emails only
 
zadpro
Sr. Member
 
Avatar
Total Posts:  247
Joined:  2007-12-10
FL, USA
 

I have over 5,500 subscriber in my newsletter. However, when I try to send a newsletter magento sends only 20 emails. So I have go back and send MANY times to complete the entire process. Any idea where this number is setup to 20? i looked in all magento configuration and php.ini but it wasn’t there.
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
zadpro
Sr. Member
 
Avatar
Total Posts:  247
Joined:  2007-12-10
FL, USA
 

I found the answer after I posted above:

Here is how to fix this problem:
Go to
app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php

Find:

$countOfSubscritions 20;

Replage the number 20; with any number your wish. . .

Good luck

 
Magento Community Magento Community
Magento Community
Magento Community
 
breastfed
Sr. Member
 
Avatar
Total Posts:  194
Joined:  2007-09-24
Münster - Germany
 

Hey

you could be set it to 50 for Example and set up a cronjob every 5 minutes.
So the Newsletter wont jam the Store Frontend.

Regards

 
Magento Community Magento Community
Magento Community
Magento Community
 
lisali
Enthusiast
 
Avatar
Total Posts:  889
Joined:  2008-04-28
London, UK
 

Hi guys,

Why is CRON-dependent? Is it possible to run this without CRON?

Many thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
breastfed
Sr. Member
 
Avatar
Total Posts:  194
Joined:  2007-09-24
Münster - Germany
 

Sure it is.
Enter: your-domain.com/cron.php

Everytime you hit that PHP File - the Cronjob should start.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lisali
Enthusiast
 
Avatar
Total Posts:  889
Joined:  2008-04-28
London, UK
 

Hi breastfed,

Many thanks for that, that will be much easier. Strange that there is not a simple button in the admin to trigger all sending. Is there a reason this has to be triggered manually?

You also said that one could set the Newsletter sending to 50 per batch, for example. So if I have 200 subscribers, I would have to manually run cron.php 4 times?

Many thanks once again!

 
Magento Community Magento Community
Magento Community
Magento Community
 
ukdazza
Guru
 
Total Posts:  308
Joined:  2008-04-16
 

i think you can set the number to how ever many you like...but it was suggested that you set it to 50 and then run it 4 times so as not to clog up the system.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ukbooksandtoys
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2010-11-09
 

There’s another instance of $countOfSubscritions in app/code/core/Mage/Newsletter/Model/Ovserver.php. Once you bump this member up, cron.php sends the new amount of emails.

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiefair
Mentor
 
Avatar
Total Posts:  1848
Joined:  2009-06-04
 

Q: Why do I have to use cron to send my email newsletter and why can’t I just send out my list of 500 customers all at once?

A: You don’t want your system to look like it’s sending out a spam spew. Start doing this and servers downstream start adding you to block lists and your newsletter creation becomes a wasted effort. So… Either learn how to set up cron and keep the number sent at a time in a reasonable 15-30 messages limit, or your competitors get all the advantage as you soon are one of the few who will actually see your newsletter.

Gained from hard personal experience, you don’t want to play around with getting your domain blacklisted if you depend upon email for working with your vendors and customers. It’s painful when everything starts to bounce! big surprise

 
Magento Community Magento Community
Magento Community
Magento Community
 
ukbooksandtoys
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2010-11-09
 

My host temporarily blocked my account because of this issue.

I didn’t realise that there was a limit of 500 per hour. However, they were very quick to reinstate it once I had confirmed the situation.

Don’t set the subscriber count too high and the CRON frequency too high either if you are running your site on a shared server.

 
Magento Community Magento Community
Magento Community
Magento Community
 
f8bar
Jr. Member
 
Total Posts:  19
Joined:  2009-08-10
 

don’t forget to change it in

app/code/core/Mage/Newsletter/Model/Observer.php

Line 62:

$countOfSubscritions 100;
 
Magento Community Magento Community
Magento Community
Magento Community
 
leopoldo69
Member
 
Total Posts:  37
Joined:  2010-10-06
 

Strange that there is not a simple button in the admin to trigger all sending.
how to create a button in the list, just after “Queue Newsletter” ?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiefair
Mentor
 
Avatar
Total Posts:  1848
Joined:  2009-06-04
 

It’s not strange, your hosting provider isn’t MailChimp or iConnect.

It’s done on purpose to prevent Magento from being banned off servers as a UCE mail system abuser by blowing 5,000 emails in a mass spew out through systems that weren’t intended for that purpose.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Wallie85
Member
 
Total Posts:  44
Joined:  2010-10-24
 

The beste way to send your newsletters is by cronjob.

Still there are people that want to do it manual and for those people it might come in handy to make a button (text) under there queue in the admin. When we develop Magento stores we set the following lines to make this happen:

Ga to: app/design/adminhtml/default/default/template/newsletter/queue/list.phtml and place right on the bottom the line from the attachement (can not place it in the post otherwise the link will disappear)

By placing the code you will get a button (text) under the queue and when you clik on it a new browser window will open and your newsletters are sent. You have to refresh the new page and everytime 20 newsletters are sent (follow the instructions above to make it more for instance 50)

Make sure that your secret key is turned of: system/config/admin/security, otherwise manual sending will not work.

Still we would recommend setting a cron job.

File Attachments
Sendnewsletter.txt  (File Size: 1KB - Downloads: 503)
 
Magento Community Magento Community
Magento Community
Magento Community
 
garrypark
Jr. Member
 
Total Posts:  17
Joined:  2011-02-01
 

Just thought I would share my solution to sending out Magento Newletters.

Firstly you must get a CronJob set up - my CPANEL conveniently had a CronJob task button.
After trying various commands to direct it to the absolute path to my cronjob file I gave up and just asked them!

My host kindly typed in the command for me:
/usr/local/lsws/fcgi-bin/lsphp5 /home/xxxxxxxxxx/public_html/cron.php

Just to warn you that my previous host would not have had a clue about doing this (as well as being so slow to the point of unusability). 
So hopefully you also have a good Magento host.

They suggested I set the cronjob to run at setting of */10 (to run every 10 minutes)
The default batch number for Magento Newsletters is 20 so I would be sending out 120 an hour.
This is well within my Host\’s permitted limit.

So it now works great - but I have been round in many circles to get there - But that\’s Magento!

 
Magento Community Magento Community
Magento Community
Magento Community
 
vasuscoin
Member
 
Avatar
Total Posts:  34
Joined:  2011-11-20
India
 

Yes!! After set the cron file in cpanel..my newsletter module is working fine.

Thanks garrypark!!!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top