# Email sending problem.

**URL:** <https://forum.mautic.org/t/email-sending-problem/10065>\
**Category:** Development\
**Created:** [December 7, 2017, 2:54pm UTC](https://forum.mautic.org/t/email-sending-problem/10065 "2017-12-07T14:54:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BodyaKuts](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@BodyaKuts](https://forum.mautic.org/u/BodyaKuts)\
**Post date:** [December 7, 2017, 2:54pm UTC](https://forum.mautic.org/t/email-sending-problem/10065/1 "2017-12-07T14:54:56Z")

</div>

Hey guys, I stock with the problem.  
  
I got multiple errors in my log files.

Code:

[2017-12-07 14:35:18] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] [] [2017-12-07 14:35:28] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] [] [2017-12-07 14:35:36] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] [] [2017-12-07 14:35:46] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] [] [2017-12-07 14:42:04] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] [] [2017-12-07 14:42:05] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] []

  
I've selected all the contacts from DB with error with

Code:

SELECT \* FROM campaign\_lead\_event\_log LEFT JOIN campaign\_lead\_event\_failed\_log ON campaign\_lead\_event\_log.id = campaign\_lead\_event\_failed\_log.log\_id LEFT JOIN leads ON campaign\_lead\_event\_log.lead\_id = leads.id

  
As a result I see the list of email, which were failed.  
All of them contains some symbols like "\_", "-", ".", "0-9".  
So I think, maybe there are some errors in Mautic source code?  
  
P.S.  
I use standalone version on a shared hosting with PHP 5.6. And I send my emails from my campaigns with PHPMail.  
  
Amy suggestion? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![BodyaKuts](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@BodyaKuts](https://forum.mautic.org/u/BodyaKuts)\
**Post date:** [December 7, 2017, 2:54pm UTC](https://forum.mautic.org/t/email-sending-problem/10065/2 "2017-12-07T14:54:56Z")

</div>

Hey guys, I stock with the problem.  
I got multiple errors in my log files.

```auto
[2017-12-07 14:35:18] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] []
[2017-12-07 14:35:28] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] []
[2017-12-07 14:35:36] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] []
[2017-12-07 14:35:46] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] []
[2017-12-07 14:42:04] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] []
[2017-12-07 14:42:05] mautic.ERROR: [MAIL ERROR] Sending failed for one or more recipients [] []
```

I’ve selected all the contacts from DB with error with

```auto
SELECT * FROM campaign_lead_event_log LEFT JOIN campaign_lead_event_failed_log ON campaign_lead_event_log.id = campaign_lead_event_failed_log.log_id LEFT JOIN leads ON campaign_lead_event_log.lead_id = leads.id
```

As a result I see the list of email, which were failed.  
All of them contains some symbols like “\_”, “-”, “.”, “0-9”.  
So I think, maybe there are some errors in Mautic source code?

P.S.  
I use standalone version on a shared hosting with PHP 5.6. And I send my emails from my campaigns with PHPMail.

Amy suggestion? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![BodyaKuts](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@BodyaKuts](https://forum.mautic.org/u/BodyaKuts)\
**Post date:** [December 7, 2017, 2:58pm UTC](https://forum.mautic.org/t/email-sending-problem/10065/3 "2017-12-07T14:58:20Z")

</div>

P.P.S.  
Mautic version - v2.8.2

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [December 7, 2017, 4:12pm UTC](https://forum.mautic.org/t/email-sending-problem/10065/4 "2017-12-07T16:12:15Z")

</div>

@BodyaKuts cron jobs set it up ?

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [December 7, 2017, 10:20pm UTC](https://forum.mautic.org/t/email-sending-problem/10065/5 "2017-12-07T22:20:24Z")

</div>

Check if those contacts have a valid email address also check your PHPMail setting.  
and try to use another Email Services Provider like Sendgrind to check if the problem if with your PHPMail and your shared hosting

---

<div class="post-metadata">

**Author:** ![BodyaKuts](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@BodyaKuts](https://forum.mautic.org/u/BodyaKuts)\
**Post date:** [December 11, 2017, 10:48am UTC](https://forum.mautic.org/t/email-sending-problem/10065/6 "2017-12-11T10:48:48Z")

</div>

Thanks for your replies!

@bizcrony Yes. They are setup. Everything is ok with all other emails.

@ninjoan Yes, email addresses are valid. I tied to send email to this addresses, using Gmail and everything went well.  
I’m checking Sendgrid now, but facing some problems with setting it up (connection refused).  
What exactly should I check in my PHPMail settings?

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [December 11, 2017, 6:21pm UTC](https://forum.mautic.org/t/email-sending-problem/10065/7 "2017-12-11T18:21:42Z")

</div>

@BodyaKuts can you share screen shot or how I can get Yr Ftp?

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [December 13, 2017, 8:19am UTC](https://forum.mautic.org/t/email-sending-problem/10065/8 "2017-12-13T08:19:48Z")

</div>

@BodyaKuts I think there is the possibility to exclude characters from PHPmail. For these, emails will not be sent.

Do you have access to your operating system logs? It would be interesting what PHPmail says.
