Your software
My Mautic version is: 3.3.3
My PHP version is: 7.4.3
My Database type and version is: MySQL 8.0.25
Your problem
My problem is:
We have been trying to use Mautic for our newsletters and such recently, but have had some issues. Most of them comes from two points: mail delivery and tracking. Basically Mautic has been unstable for us, not always working properly. Sending mail often fails and we have to retry several times. Tracking what emails is opened, links clicked etc. seems to work for some users, but weāve gotten reports back from users that have read and clicked on the email but without anything showing up in Mautic.
What weāre asking is what we can do to ensure Mautic is working as good as possible. Right now weāre using gmail which weāve heard has some issues. Is there another mail provider we should use instead for Mautic? Anyone that has had a good experience with another mail provider?
And to debug these issues weāve been having, where should we look to see logs/errors and what kind of ways can we test solutions to these issues? Weāre not sure where to look. We have full SSH access to the server where Mautic is running, so we can access anything on it.
These errors are showing in the log:
Not sure what logs to show here.
Steps I have tried to fix the problem:
Weāve tried with different mail providers like outlook but had different issues to get it configured so that is why weāre asking here
We have been trying to use Mautic for our newsletters and such recently, but have had some issues. Most of them comes from two points: mail delivery and tracking. Basically Mautic has been unstable for us, not always working properly. Tracking what emails is opened, links clicked etc. seems to work for some users, but weāve gotten reports back from users that have read and clicked on the email but without anything showing up in Mautic.
What amounts of emails are we talking about? If you send out 100k very fast, many people open those emails, then you can see a sudden surge in traffic. If your server canāt handle it, then you will have issues with tracking.
Tracking can be problematic for outlook contacts as well. Itās not Mautic specific, itās outlook specific. If outlook blocks the tracking images, you simply canāt track. Again, not Mautic specific.
Sending mail often fails and we have to retry several times.
What does fail mean? Is this campaign emails or segment emails? Are you using Queue? What SMTP do you use for sending?
What weāre asking is what we can do to ensure Mautic is working as good as possible. Right now weāre using gmail which weāve heard has some issues. Is there another mail provider we should use instead for Mautic? Anyone that has had a good experience with another mail provider?
What do you mean? Gmail as smtp or Gmail as software? Cause the question is like: we have been using a skateboard until now, and we have problems with fighter jets.
You can start by answering the questions above.
Iām sure weāll figure it out.
We are talking about 500-1000~ emails at once, tops.
Weāve had issues with for example sending segment or campaign emails where mautic hangs for a while and just fail to send. Iāll ask my collegue if they have any details but as far as I understood there wasnāt any particular error message either. Weāre a few thats been working on this.
Iām not sure about queue or where that is setup. We tried to figure out batching or queueing but we didnāt manage to do so yet so we are just sending everything at once.
Sorry, I meant we are using gmail for smtp and imap. We are using an email from gmail for everything that requires an email.
Thanks for your reply. Hopefully we can find out how to do this
I would focus on enabling the queue. There are not much email providers who like to receive 1000 emails in a couple of seconds. Gmail has not only a limit of how much emails you can send each day, but also a rate limit, if you send to fast you will get problems. I heard that they can put emails in the sent folder, without really sending the emails.
but weāve gotten reports back from users that have read and clicked on the email but without anything showing up in Mautic
What kind of hosting do you use? Shared hosting? A VPS?
Hey,
Gmail will limit you to daily 500, but it might be less depending on your deliverability. It is also possible, that they would apply a cap for you hourly. I would not use gmail as smtp at all.
@EJL Thanks. Weāve enabled debug mode and weāre going to test email queue.
@dimitri Alright. Weāre going to try to enable the queue and do some test sendings of larger volumes to see if they seem to send out properly and get tracked properly. Perhaps thats the entire issue.
Our server for Mautic is hosted at Digital Ocean.
@joeyk Thanks for the tips. Weāre looking into seeing if there are better alternatives for smtp servers. Is there any type of smtp servers / mail providers that youāve had good experience with for Mautic?
Thank you all for the assistance. Very appreciated.
They have a 250 actions per second limit, for all actions, and a 100 actions a second for sending. The queue method for sending in Mautic allows you to send slower.
Gmail has daily limits, which are different for the free gmail.com addresses and for gsuite. And they have limits per second, which are almost not talked about, but which are there.
Just like with Amazon, a daily limit of often 50k, but also a limit of a maximum of 14 messages per second.
Max is 2500 what I can see. And as far as I know Gmail hammers it down if your deliverability is not superb. Can you please link your resource here, Iām really curious.
Iāve some issues setting up email queuing. The moment I enable mails are no longer being sent. I can see that they added to the āvar/spoolā directory, but whenver I run the command for sending messages it doesnāt work, it just says 0 messages have been processed.
E.g I click āsend test emailā and is told its succesful.
I run command āphp bin/console mautic:messages:sendā from mautic root.
It tells me 0 messages has been processed.
No email seems to have been sent.
Same with campaign-sent mail. Email sending works when queue is disabled. Am I missing something?
This is the config, it should be standard values I think.
Great. That seems to work. Thank you very much!
Do you know why this command has to be used? The documentation I was reading doesnāt mention this at all (e.g Cron jobs ā Mautic Documentation 0.1 documentation). Is there another documentation page with details regarding this?
swiftmailer:spool:send Sends emails from the spool
Here is the output for the help command for this function
Description:
Sends emails from the spool
Usage:
swiftmailer:spool:send [options]
Options:
āmessage-limit=MESSAGE-LIMIT The maximum number of messages to send.
ātime-limit=TIME-LIMIT The time limit for sending messages (in seconds).
ārecover-timeout=RECOVER-TIMEOUT The timeout for recovering messages that have taken too long to send (in seconds).
āmailer=MAILER The mailer name.
ātransport=TRANSPORT The service of the transport to use to send the messages.
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
āansi Force ANSI output
āno-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The Environment name. [default: āprodā]
āno-debug Switches off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
The swiftmailer:spool:send command sends all emails from the spool.