Call to undefined method setApiKey

I am trying to connect the mautic to elastic email, but this error message appears in the log and does not succeed. Does anyone know how to solve it?

Thanks


Code:
[2017-02-16 13:40:31] mautic.ERROR: PHP Error - Call to undefined method setApiKey - in file /home/ideacomu/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] [] [2017-02-16 13:40:46] mautic.ERROR: PHP Error - Call to undefined method setApiKey - in file /home/ideacomu/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []

I am trying to connect the mautic to elastic email, but this error message appears in the log and does not succeed. Does anyone know how to solve it?
Thanks

[2017-02-16 13:40:31] mautic.ERROR: PHP Error - Call to undefined method setApiKey - in file /home/ideacomu/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] [] [2017-02-16 13:40:46] mautic.ERROR: PHP Error - Call to undefined method setApiKey - in file /home/ideacomu/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php - at line 291 [] []