# Error while integrating Amazon SES with Mautic

**URL:** <https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390>\
**Category:** Product Support\
**Created:** [July 26, 2020, 12:28pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390 "2020-07-26T12:28:35Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 15, 2020, 4:52am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/21 "2020-08-15T04:52:21Z")

</div>

Okay, plz check if your email address (not domain but whole address) is verified in your console - and if you are using the right region.

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 15, 2020, 4:35pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/22 "2020-08-15T16:35:06Z")

</div>

Hi @joeyk I am so sorry I am bothering you so much. Just that I am a very new user of mautic and I don’t know much. I am trying to find my way through without any technical help.

Coming to your suggestion… I have verified my email address and I am using the right region.

Just FYI, I am using AWS SES on my site to send out confirmation emails using a WP Offload SES plugin, and I have used the same credentials over there. Could that be a reason for this issue of emails not getting sent?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 15, 2020, 4:59pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/23 "2020-08-15T16:59:55Z")

</div>

Hey, no problem I’m glad to help (if I can)  
You can use the same SES account across various software, that is not the issue.

Are emails not in spam by the chance?  
Are you sending to an email, that is not blacklisted?

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 16, 2020, 4:21am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/24 "2020-08-16T04:21:39Z")

</div>

Hey @joeyk,

No, the emails aren’t getting sent.  
I checked the SES email stats and they show no emails were sent.

At the moment, I am just trying setting up the email functionality with my own email addresses as contacts, so I don’t think the blacklisted address is the issue.

---

<div class="post-metadata">

**Author:** ![tomr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tomr/32/2184_2.png) [@tomr](https://forum.mautic.org/u/tomr)\
**Post date:** [August 16, 2020, 7:19am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/25 "2020-08-16T07:19:52Z")

</div>

Hi @Shanbhag, I am not an expert but I remember how frustrating it was to setup the SES when I first started using SES. Check following:

Your account is out of sandbox  
Your zone are in sync Mautic \<\> SES  
Mautic: [email-smtp.eu-west-1.amazonaws.com](http://email-smtp.eu-west-1.amazonaws.com) \<\> Amazon SES: us-west-1  
Mautic: [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com) \<\> Amazon SES: us-east-1  
Mautic: [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) \<\> Amazon SES: us-west-2

Under the current zone you have following confirmed:  
Domain and Email addresses that are used to sent email (be mindful of your admin email too)

All mandatory Cron are set.

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 16, 2020, 7:36am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/26 "2020-08-16T07:36:09Z")

</div>

Hey @tomr Thanks for your message.

I have done all that:

- My account is out of sandbox

- My zones are in sync with Mautic SES

- Under the current zone I have verfied my email address and domain.

The only thing I am unsure about is the cron job. I don’t know how to set a cron job, so I checked a Youtube tutorial to guide me. Maybe I made a mistake somewhere.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 16, 2020, 7:07pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/27 "2020-08-16T19:07:11Z")

</div>

Are you using the email queue feature?  
If so, could you plz check if you have any files hanging in /mautic\_path/mautic/app/spool/default/ folder?

Did you try to send test email from Configuration/Email where you entered the email data - if so did it arrive at all?

Here is a comprehensive intro to cronjobs and Mautic:

> [@Matching SES send rate](https://forum.mautic.org/t/matching-ses-send-rate/6783/5):
>
> Hi @ezzat ! There are different ways how to handle SES with Mautic, I will share you my practice, which I use for all our customers at [Friendly Automate](https://friendly.is/automate) and which works like a Swiss clockwork. There are other good solutions as well, I’m sure someone will post their in this thread. (Always use the proper path, since I’m not paying attention to it in this guide) Too fast sending If you send too fast, your campaign will fall into a cliff. That means you start sending, depending on the speed firs…

Keep me posted.

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 17, 2020, 4:36pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/28 "2020-08-17T16:36:26Z")

</div>

Hey @joeyk,

You’re right.

All my emails are in the spool/default folder.  
These emails were a part of a trial campaign which I had set-up to test the emailing facility. They didn’t get sent. Neither did the the Configuration/ Email set-up test email arrive.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 17, 2020, 5:11pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/29 "2020-08-17T17:11:23Z")

</div>

Okay, we are getting closer 🙂 99% you have crons not configured properly. Could you plz paste your cron here?

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 17, 2020, 5:34pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/30 "2020-08-17T17:34:00Z")

</div>

/usr/local/cpanel/3rdparty/bin/php/home/nuvo/public\_html/mautic/app/console mautic:email:process \> /dev/null 2\>&1

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 17, 2020, 6:02pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/31 "2020-08-17T18:02:28Z")

</div>

Okay, run it in command line without the dev/null ending. What happens?

Actually also try mautic:email:send

Also: please read my post above. It really explains the mautic crons.

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 17, 2020, 6:36pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/32 "2020-08-17T18:36:23Z")

</div>

I will read the post and make the changes and let you know how it goes. Thanks @joeyk

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 18, 2020, 4:49am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/33 "2020-08-18T04:49:19Z")

</div>

Hey @joeyk ,

I tried sending the email without the dev/null ending but they are still getting piled up in the spool/default folder. 😕

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 18, 2020, 5:59pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/34 "2020-08-18T17:59:04Z")

</div>

Plz post here the response from your server when you try to send manually. (SSH). Also Don’t use ‘process’ but use ‘send’ command.

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 20, 2020, 4:47am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/35 "2020-08-20T04:47:02Z")

</div>

@joeyk Hi.

This is a bit too technical for me.  
I will need to figure out how to do that. First, I need to figure out how to create a SSH user through cPanel. Let me try and figure it out. I will certainly get back to you here.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 20, 2020, 2:03pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/36 "2020-08-20T14:03:10Z")

</div>

Sorry, I don’t know better way to debug this.

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [August 24, 2020, 5:04pm UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/37 "2020-08-24T17:04:46Z")

</div>

Hey @joeyk,

I am sorry. I am not able to get SSH access. I am hosted on a shared server and I was told I cannot get SSH access on a shared server. Is there any other way out?

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [November 16, 2020, 5:45am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/38 "2020-11-16T05:45:00Z")

</div>

Hey @joeyk,

I am back 🙂

I have shifted my hosting to a cloud server, now.  
But I, still find that my emails aren’t going.

I have changed my version to 3.1.2

My Amazon SES account is out of sandbox and I have configured SES correctly (because I received the test email).

But, my campaign emails aren’t getting delivered.

What should I do?  
Thanks.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [November 16, 2020, 6:10am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/39 "2020-11-16T06:10:00Z")

</div>

Hi,  
did you set up the cronjobs?  
if yes, what happens if you run them in the terminal?  
Thx,  
Joey

---

<div class="post-metadata">

**Author:** ![Shanbhag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shanbhag/32/1504_2.png) [@Shanbhag](https://forum.mautic.org/u/Shanbhag)\
**Post date:** [November 16, 2020, 7:15am UTC](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390/40 "2020-11-16T07:15:50Z")

</div>

Hey @joeyk,

Thanks man for your prompt response.

I have set-up the cronjobs, I don’t know if I have set them up correctly, thought.  
The reason I say that is, in this case, there are two variables – the cloud server and the newer version of Mautic (3.1.2)

I did test the output before setting them and there was no error.

Here’s the cronjob for sending email…

/bin/php /var/www/mmm.nuvop.com/bin/console mautic:emails:send \> /dev/null 2\>&1

Is this correct? (I’m asking because the test did not throw up any errors)

Thanks

[Previous page](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390.md?page=1)

[Next page](https://forum.mautic.org/t/error-while-integrating-amazon-ses-with-mautic/15390.md?page=3)
