# Undefined method setApiKey on test SES connection

**URL:** <https://forum.mautic.org/t/undefined-method-setapikey-on-test-ses-connection/7487>\
**Category:** Product Support\
**Created:** [February 12, 2017, 6:01am UTC](https://forum.mautic.org/t/undefined-method-setapikey-on-test-ses-connection/7487 "2017-02-12T06:01:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiger](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@Tiger](https://forum.mautic.org/u/Tiger)\
**Post date:** [February 12, 2017, 6:01am UTC](https://forum.mautic.org/t/undefined-method-setapikey-on-test-ses-connection/7487/1 "2017-02-12T06:01:50Z")

</div>

Hi,  
  
  
  
i’m using the last version of Mautic downloaded from this website.  
  
  
  
Server setup :  
  
  
  
Apache, Php 7, Cpanel  
  
  
  
When i click on email setting \> test connection (in mail send setting) nothing happened, in chrome console i could see an “error 500” then i checked the logs and found this :  
  
  
  
[2017-02-12 05:21:14] mautic.ERROR: PHP Error - Call to undefined method setApiKey - in file /home/domain/public\_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []  
  
  
  
Any fix ?  
  
  
  
Thank you.

---

<div class="post-metadata">

**Author:** ![Tiger](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@Tiger](https://forum.mautic.org/u/Tiger)\
**Post date:** [February 12, 2017, 6:01am UTC](https://forum.mautic.org/t/undefined-method-setapikey-on-test-ses-connection/7487/2 "2017-02-12T06:01:50Z")

</div>

Hi,

i’m using the last version of Mautic downloaded from this website.

Server setup :

Apache, Php 7, Cpanel

When i click on email setting \> test connection (in mail send setting) nothing happened, in chrome console i could see an “error 500” then i checked the logs and found this :

[2017-02-12 05:21:14] mautic.ERROR: PHP Error - Call to undefined method setApiKey - in file /home/domain/public\_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []

Any fix ?

Thank you.

---

<div class="post-metadata">

**Author:** ![bchiam](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bchiam](https://forum.mautic.org/u/bchiam)\
**Post date:** [February 12, 2017, 4:31pm UTC](https://forum.mautic.org/t/undefined-method-setapikey-on-test-ses-connection/7487/3 "2017-02-12T16:31:47Z")

</div>

Revert back to 2.5.1 for the time being. Until the developer come up with the stable release beyond version 2.6.
