# Sending Failed- AWS API SES( Using Queue and not "Send Immediately" ) in Mautic 3.1

**URL:** <https://forum.mautic.org/t/sending-failed-aws-api-ses-using-queue-and-not-send-immediately-in-mautic-3-1/16056>\
**Category:** Product Support\
**Created:** [September 12, 2020, 8:07am UTC](https://forum.mautic.org/t/sending-failed-aws-api-ses-using-queue-and-not-send-immediately-in-mautic-3-1/16056 "2020-09-12T08:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balakrishnan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/balakrishnan/32/547_2.png) [@balakrishnan](https://forum.mautic.org/u/balakrishnan)\
**Post date:** [September 12, 2020, 8:07am UTC](https://forum.mautic.org/t/sending-failed-aws-api-ses-using-queue-and-not-send-immediately-in-mautic-3-1/16056/1 "2020-09-12T08:07:04Z")

</div>

**Your software**  
My Mautic version is: 3.1.0  
My PHP version is: 7.2

**Your problem**  
My problem is:  
I tried to send an email using AWS SES API with Queue option and got below error:

These errors are showing in the log:  
In AmazonApiTransport.php line 195:  
Attempted to call an undefined method named “getAttachments” of class “Swift\_Message”

Then i tried with Send Immediately option and it is working fine.

---

<div class="post-metadata">

**Author:** ![codes9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/codes9/32/682_2.png) [@codes9](https://forum.mautic.org/u/codes9)\
**Post date:** [November 1, 2020, 12:52am UTC](https://forum.mautic.org/t/sending-failed-aws-api-ses-using-queue-and-not-send-immediately-in-mautic-3-1/16056/2 "2020-11-01T00:52:53Z")

</div>

**Try this**

- Clear Cache
- Reset your www permissions

**Can you show more of what you see in the logs.**

- Mautic log
- Apache error.log

---

<div class="post-metadata">

**Author:** ![balakrishnan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/balakrishnan/32/547_2.png) [@balakrishnan](https://forum.mautic.org/u/balakrishnan)\
**Post date:** [November 4, 2020, 5:39am UTC](https://forum.mautic.org/t/sending-failed-aws-api-ses-using-queue-and-not-send-immediately-in-mautic-3-1/16056/3 "2020-11-04T05:39:49Z")

</div>

Hi,

I tired the cache clear and access, and still the issue is not resolved.

In Mautic log it shows:

In AmazonApiTransport.php line 195:  
Attempted to call an undefined method named “getAttachments” of class “Swift\_Message”

Also this issue has been created as a PR.

> <https://github.com/mautic/mautic/issues/9156>
>
> Mautic Version : 3.1
> Php : 7.2
> Description: I tried to send an email using AWS SES API with Queue file system option...

Thanks
