Email Queue + SMTP

My Mautic version is: 4.4.6
My PHP version is: 7.4.3.3
My Database type and version is: PostgreSQL

My problem is:

Hi guys, my hostgator SMTP allows me to send 500 emails per hour, I tried to queue up the emails to send 125 per 15 minutes, I put the cron job mautic:emails:send but my emails are not coming through, can someone help me with this?

I’m a beginner here, so if I’m doing something wrong, can someone please show me what settings to put in order to send 500 emails per hour?

1 Like

Hello!

If you run the cron every 5 min, then you have all together 12 command executions.
500 / 12 = 41.666 = 41 email / execution.

So your cron should be: message limit for queue processing: 41

If you run the cron every minute, then you have 60 command executions.
500 / 60 = 8.3 = 8 email / execution.

So your cron should be: message limit for queue processing: 8

Let me know if that works for you.

Joey

Hi Joeyk,

I put the message limit for queue processing on 40 and set the cron job to run every 5 min, it says that the message was sent, however, I haven’t received it.

That’s the cron jobs I’m using.

It seems like it arrived now and landed in spam

Probably an SMTP related thing, can you tell me if these cron jobs are good please? And if not, what to change?

mautic:webhook:process
Is used only if you are sending webhooks. If you don’t, you can delete them.

mautic:leadlists:update
Is the old format of mautic:segments:update. I would rather use that.

mautic:campaigns:update
Good.

mautic:campaigns:trigger
Good.

mautic:emails:process
I would not use this, It’s probably obsolete

mautic:fetch:email
Are you using monitored inboxes (Check if people answered your emails)?
If not, you can delete this.

mautic:iplookup:download
This is fine, if you have the Maxmind DB installed.
If not, then you should install it :slight_smile:

mautic:segments:update
Good. But I would run it more frequently.
This depends on how many segments / contacts you have.
Keep it if you are happy, that only every 20 min your segments are refreshed.

mautic:emails:fetch
What? Again? Why?

mautic:social:monitoring
Are you using Twitter with Mautic? If not, you can remove this.

One more thing.
As you can see campaign update, campaign trigger and segments update will happen at the same time at 20, 40, 00 of the hour. It is so much better to run the commands seperated in time:

From the documentation:

It is HIGHLY recommended that you stagger the following required jobs so as to not run the exact same minute.

For instance:

- 0,15,30,45 <— mautic:segments:update
- 5,20,35,50 <— mautic:campaigns:update
- 10,25,40,55 <— mautic:campaigns:trigger

You can also read more about cron here:

1 Like

Thank you!

Hello Everyone. I am hoping to contribute to this thread by asking about the Mautic Gui setting vs cron jobs… For example, I know that my cron job to send emails/queue is every 15 minutes… A lot of people talk about setting up your cron jobs and modifying the send limits… But some of us prefer to work in the Gui! But I thought Mautic had a GUI setting (and this is where I am getting confused) to also change this on the fly without having to alter cron job settings ? For example, based on the fact I know the cron goes out every 15 mintues, and I am using a new Ionos Email account that only allows 50 per hour (for new accounts - shall be upgraded to 500 within 30 days) …

so I would assume that, and to be safe I will send out 45 per hour so that would be 45/4 = 11 per “cron job of 15 minutes” … does that mean that I should put 11 in the “Message limit for queue processing” as in the picture below?

I would use the command line to set this. Here is a video:

1 Like

Thank you @joeyk