How a mailing can be created and sent immediately?

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

andreas
Posts: 1
Joined: Thu Apr 09, 2009 6:35 pm

How a mailing can be created and sent immediately?

Post by andreas »

Hi all,
I am using EMM WEB services, by SOAP interface, and the http://enarion.net/programming/php/openemm/ PHP class wrapper.

After having scheduled a new mailing, it normally takes 15 minutes (or even more) to be actually delivered, despite the sending date-time (due to the OpenEMM internal job scheduling policy). This holds also for mailing with only 1 recipient because mailings can be sent only when mailgun component runs, and this happens every 15 minutes (deduced by log analysis).

My question is: how to reduce this periodic schedule of the main process (ruler? or mailgun? or something like that) which is responsible for scanning and sending a mailing (or test mailing), so that it can be immediately generated and delivered?
Is it possible to change this period? How that can be done?

By using the WEB Front-end pages a test mailing can be sent immediately: this is what I am still trying to get, by using PHP, but sending group 'T' in sendMailing() seems not working as I supposed.

Thank you for your support.
Regards
emmulator
Posts: 26
Joined: Mon Oct 27, 2008 7:44 pm

Post by emmulator »

I'm looking for this same answer, please. We are using OpenEMM via the webservices API from our main application, and when a user in our application wants to preview the mailing, it's frustrating for them to wait what seems to them like an arbitrarily long time to recieve the preview message.

Thanks!
emmulator
Posts: 26
Joined: Mon Oct 27, 2008 7:44 pm

Post by emmulator »

We've noticed the

delayedMailings.cronExpression=0 0,15,30,45 * * * ?

entry in the /home/openemm/webapps/core/WEB-INF/classes/emm.properties file.

This looks like the culprit -- is there any reason we *shouldn't* set this to fire every 5 minutes or so?

Thanks!
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

This property is only used for mailings which are not sent out right away but scheduled for later sending.
OpenEMM Maintainer
emmulator
Posts: 26
Joined: Mon Oct 27, 2008 7:44 pm

Post by emmulator »

We're using the webservices API and scheduling our Mailings for 'now', but I guess since this counts as 'scheduling' rather than 'immediate sending', they're always delayed by up to 15 minutes. This is only really a problem for the previews, where our users want to receive an email themselves to confirm what it will look like and that the system is working, and it makes them nervous when they have to wait.

So, is there any technical reason not to set it to 5 minutes or even every minute?
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

You can set the cronjob to any timing you want, just go ahead!
OpenEMM Maintainer
Post Reply