# Mailjet: Can't send trigger mails

**URL:** <https://forum.mautic.org/t/mailjet-cant-send-trigger-mails/8698>\
**Category:** Product Support\
**Created:** [June 9, 2017, 12:57pm UTC](https://forum.mautic.org/t/mailjet-cant-send-trigger-mails/8698 "2017-06-09T12:57:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apfelbiss](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@Apfelbiss](https://forum.mautic.org/u/Apfelbiss)\
**Post date:** [June 9, 2017, 12:57pm UTC](https://forum.mautic.org/t/mailjet-cant-send-trigger-mails/8698/1 "2017-06-09T12:57:10Z")

</div>

Hello,  
  
  
  
when Mailjet ist set in the email settings, the connection test and the test email work fine. Even regular segment mails are sent.  
  
  
  
But when Mautic wants to send trigger emails via capaign, I get an error email via Cron Daemon:

Quote:

**Subject: Cron /usr/local/bin/softlimit -m 150000000 -o 200 -p 80 -t 180 /usr/local/pd-admin2/bin/php-7.0-cli /home/xxxxxxxxx/go/app/console mautic:campaigns:trigger \> /dev/null**  
PHP Warning: stream\_socket\_enable\_crypto(): SSL operation failed with code 1. OpenSSL Error messages:  
error:14090086:SSL routines:ssl3\_get\_server\_certificate:certificate verify failed in /home/xxxxxxxxx/go/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 95

  
This is the line 95 from StreamBuffer.php, mentioned above:

Quote:

return stream\_socket\_enable\_crypto($this-\>\_stream, true, STREAM\_CRYPTO\_METHOD\_TLS\_CLIENT);

  
This I have found in the log file:

Quote:

mautic.ERROR: [MAIL ERROR] Unable to connect with TLS encryption Log data: ++ Starting MauticEmailBundleSwiftmailerTransportMailjetTransport \<\> EHLO [127.0.0.1] \<\> STARTTLS \<\< 220 2.0.0 Ready to start TLS !! Unable to connect with TLS encryption (code: 0) (send) [] []

---

<div class="post-metadata">

**Author:** ![Apfelbiss](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@Apfelbiss](https://forum.mautic.org/u/Apfelbiss)\
**Post date:** [June 9, 2017, 12:57pm UTC](https://forum.mautic.org/t/mailjet-cant-send-trigger-mails/8698/2 "2017-06-09T12:57:10Z")

</div>

Hello,

when Mailjet ist set in the email settings, the connection test and the test email work fine. Even regular segment mails are sent.

But when Mautic wants to send trigger emails via capaign, I get an error email via Cron Daemon:

[quote]Subject: Cron [xxxxxxxxx@server03](mailto:xxxxxxxxx@server03) /usr/local/bin/softlimit -m 150000000 -o 200 -p 80 -t 180 /usr/local/pd-admin2/bin/php-7.0-cli /home/xxxxxxxxx/go/app/console mautic:campaigns:trigger \> /dev/null  
PHP Warning: stream\_socket\_enable\_crypto(): SSL operation failed with code 1. OpenSSL Error messages:  
error:14090086:SSL routines:ssl3\_get\_server\_certificate:certificate verify failed in /home/xxxxxxxxx/go/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 95[/quote]

This is the line 95 from StreamBuffer.php, mentioned above:

> [@](#):
>
> return stream\_socket\_enable\_crypto($this-\>\_stream, true, STREAM\_CRYPTO\_METHOD\_TLS\_CLIENT);

This I have found in the log file:

> [@](#):
>
> mautic.ERROR: [MAIL ERROR] Unable to connect with TLS encryption Log data: ++ Starting MauticEmailBundleSwiftmailerTransportMailjetTransport \<\< 220 [leela-14.mailjet.com](http://leela-14.mailjet.com) ESMTP Mailjet \>\> EHLO [127.0.0.1] \<\< [250-smtpin-leela-14.mailjet.com](http://250-smtpin-leela-14.mailjet.com) 250-PIPELINING 250-SIZE 15728640 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 250-AUTH=PLAIN LOGIN DIGEST-MD5 CRAM-MD5 250-ENHANCEDSTATUSCODES 250 8BITMIME \>\> STARTTLS \<\< 220 2.0.0 Ready to start TLS !! Unable to connect with TLS encryption (code: 0) (send)

---

<div class="post-metadata">

**Author:** ![Apfelbiss](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@Apfelbiss](https://forum.mautic.org/u/Apfelbiss)\
**Post date:** [June 9, 2017, 1:51pm UTC](https://forum.mautic.org/t/mailjet-cant-send-trigger-mails/8698/3 "2017-06-09T13:51:37Z")

</div>

Now I have a little workaround: After changing the email service from “Mailjet” to “Other SMTP-Server” and adding the correct SMTP server it now works, when encryption is deactivated (because this can only be deactivated for “Other SMTP-Server”).
