# Mautic email errors

**URL:** https://forum.mautic.org/t/mautic-email-errors/9603
**Category:** General Discussion
**Created:** [September 29, 2017, 7:15pm UTC](https://forum.mautic.org/t/mautic-email-errors/9603 "2017-09-29T19:15:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ahsan2011](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ahsan2011](https://forum.mautic.org/u/ahsan2011)
#### Post date: [September 29, 2017, 7:15pm UTC](https://forum.mautic.org/t/mautic-email-errors/9603/1 "2017-09-29T19:15:07Z")

</div>

I am unable to send emails in mautic. The test connection works but mails are not being sent. It gets resolved briefly when i reboot.  
  
  
  
Here are the logs  
  
  
  
2017-09-29 20:01:21] mautic.ERROR: [MAIL ERROR] Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:00:21 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello [smtp.sendwhile.net](http://smtp.sendwhile.net) [139.162.232.56], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) (send) [] []  
  
[2017-09-29 20:03:15] mautic.ERROR: [MAIL ERROR] Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:01:53 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello [smtp.sendwhile.net](http://smtp.sendwhile.net) [139.162.232.56], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) (send) [] []  
  
  
  
[2017-09-29 20:10:58] mautic.ERROR: [MAIL ERROR] Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:09:58 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello [smtp.sendwhile.net](http://smtp.sendwhile.net) [139.162.232.56], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) (send) [] []  
  
[2017-09-29 20:10:59] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Malformed UTF-8 characters, possibly incorrectly encoded” at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php line 164 {“exception”:"[object] (InvalidArgumentException(code: 0): Malformed UTF-8 characters, possibly incorrectly encoded at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php:164)"} []  
  
[2017-09-29 20:12:31] mautic.ERROR: [MAIL ERROR] Connection to localhost:25 Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:11:31 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to localhost:25 Timed Out (code: 0) !! Connection to localhost:25 Timed Out (code: 0) (send) [] []  
  
[2017-09-29 20:14:13] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Malformed UTF-8 characters, possibly incorrectly encoded” at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php line 164 {“exception”:"[object] (InvalidArgumentException(code: 0): Malformed UTF-8 characters, possibly incorrectly encoded at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php:164)"} []

---

<div class="post-metadata">

### Author: ![ahsan2011](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ahsan2011](https://forum.mautic.org/u/ahsan2011)
#### Post date: [September 29, 2017, 7:15pm UTC](https://forum.mautic.org/t/mautic-email-errors/9603/2 "2017-09-29T19:15:07Z")

</div>

I am unable to send emails in mautic. The test connection works but mails are not being sent. It gets resolved briefly when i reboot.

Here are the logs

2017-09-29 20:01:21] mautic.ERROR: [MAIL ERROR] Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:00:21 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello [smtp.sendwhile.net](http://smtp.sendwhile.net) [139.162.232.56], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) (send) [] []  
[2017-09-29 20:03:15] mautic.ERROR: [MAIL ERROR] Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:01:53 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello [smtp.sendwhile.net](http://smtp.sendwhile.net) [139.162.232.56], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) (send) [] []

[2017-09-29 20:10:58] mautic.ERROR: [MAIL ERROR] Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:09:58 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello [smtp.sendwhile.net](http://smtp.sendwhile.net) [139.162.232.56], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) (send) [] []  
[2017-09-29 20:10:59] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Malformed UTF-8 characters, possibly incorrectly encoded” at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php line 164 {“exception”:"[object] (InvalidArgumentException(code: 0): Malformed UTF-8 characters, possibly incorrectly encoded at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php:164)"} []  
[2017-09-29 20:12:31] mautic.ERROR: [MAIL ERROR] Connection to localhost:25 Timed Out Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [smtp.sendwhile.net](http://smtp.sendwhile.net) ESMTP Sendmail 8.14.7/8.14.7; Fri, 29 Sep 2017 20:11:31 GMT \>\> EHLO [mautic.sendwhile.net](http://mautic.sendwhile.net) \<\< [250-smtp.sendwhile.net](http://250-smtp.sendwhile.net) Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 2.1.0 … Sender ok !! Connection to localhost:25 Timed Out (code: 0) !! Connection to localhost:25 Timed Out (code: 0) (send) [] []  
[2017-09-29 20:14:13] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Malformed UTF-8 characters, possibly incorrectly encoded” at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php line 164 {“exception”:"[object] (InvalidArgumentException(code: 0): Malformed UTF-8 characters, possibly incorrectly encoded at /var/www/vhosts/mautic/vendor/symfony/http-foundation/JsonResponse.php:164)"} []

---

<div class="post-metadata">

### Author: ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)
#### Post date: [September 30, 2017, 1:49pm UTC](https://forum.mautic.org/t/mautic-email-errors/9603/3 "2017-09-30T13:49:54Z")

</div>

@ahsan2011  
Sender ok !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0) !! Connection to [smtp.sendwhile.net:25](http://smtp.sendwhile.net:25) Timed Out (code: 0)

Ask whoever administers [smtp.sendwhile.net](http://smtp.sendwhile.net) about “Timed Out (code: 0)”

---

<div class="post-metadata">

### Author: ![ahsan2011](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@ahsan2011](https://forum.mautic.org/u/ahsan2011)
#### Post date: [October 1, 2017, 7:34pm UTC](https://forum.mautic.org/t/mautic-email-errors/9603/4 "2017-10-01T19:34:59Z")

</div>

Hi Yosu  
The mautic and SMTP is on the same server. the test email, and port 25 all works good.

---

<div class="post-metadata">

### Author: ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)
#### Post date: [October 2, 2017, 12:24pm UTC](https://forum.mautic.org/t/mautic-email-errors/9603/5 "2017-10-02T12:24:31Z")

</div>

Then YOU have to find out what Timed Out (code: 0) means.  
Also recommended to look into the logs and find out what is going on.

---

<div class="post-metadata">

### Author: ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)
#### Post date: [October 2, 2017, 12:25pm UTC](https://forum.mautic.org/t/mautic-email-errors/9603/6 "2017-10-02T12:25:15Z")

</div>

oh! Try using a free email relay service and see what happens.
