Campaign Email Not Sending :: Custom Email Getting 500 Internal Server Error

I’m using version 1.2.3, set to automatically send emails. I’m using Mandrill and when I click the test button in config it says successful. Also, I get the test email. I have a simple campaign set so that when a lead is added to a list it sends an email. The email is never sent. I did the same when a form is submitted, but the email doesn’t get sent.



Also, when I go to a lead and try to email them I get a 500 Internal Server Error. I’m using a Hostmonster VPS.



Any ideas?



Capture.png

I’m using version 1.2.3, set to automatically send emails. I’m using Mandrill and when I click the test button in config it says successful. Also, I get the test email. I have a simple campaign set so that when a lead is added to a list it sends an email. The email is never sent. I did the same when a form is submitted, but the email doesn’t get sent.

Also, when I go to a lead and try to email them I get a 500 Internal Server Error. I’m using a Hostmonster VPS.

Any ideas?

I just updated to 1.2.4 and I’m still having the same issues.

@DavidNJohnson what do the logs say?

[2016-01-26 02:50:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 02:50:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 02:50:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 03:20:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 03:20:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 03:20:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 03:25:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 03:25:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 03:25:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 03:30:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 03:30:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 03:30:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:00:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 04:00:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 04:00:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:30:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 04:30:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 04:30:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:34:19] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 04:34:53] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 04:50:14] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 05:11:27] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []

@DavidNJohnson this SQL error was fixed in 1.2.4

Strange, I did update and I’m still having the issue.

There are many issues in your log. What issue remain after the update?

These are all from Today:

[2016-01-26 03:25:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 03:25:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 03:25:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 03:30:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 03:30:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 03:30:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:00:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 04:00:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 04:00:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:30:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 04:30:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 04:30:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:34:19] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 04:34:53] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 04:50:14] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 05:11:27] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 05:30:03] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []
[2016-01-26 14:31:56] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []

Looks like my server time is off. Hard to tell which ones are new.

Okay, these should all be since the update:

[2016-01-26 04:00:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 04:00:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 04:00:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:30:02] mautic.ERROR: DoctrineDBALDBALException: An exception occurred while executing ‘SELECT max(list_leads.lead_id) as max_id, count(distinct(list_leads.lead_id)) as lead_count FROM mau_lead_lists_leads list_leads WHERE (list_leads.manually_removed = ?) AND (list_leads.leadlist_id IN ()) AND (list_leads.date_added <= ‘2016-01-26 04:30:02’) AND (NOT EXISTS (SELECT null FROM mau_campaign_leads campaign_leads WHERE (campaign_leads.lead_id = list_leads.lead_id) AND (campaign_leads.manually_removed = ?) AND (campaign_leads.campaign_id = 2)))’ with params [0, 0]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) AND (list_leads.date_added <= ‘2016-01-26 04:30:02’) AND (NOT EXISTS (SELECT ’ at line 1 (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 while running console command mautic:campaigns:update [] []
[2016-01-26 04:34:19] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 04:34:53] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 04:50:14] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 05:11:27] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 05:30:03] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []
[2016-01-26 14:31:56] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 14:40:02] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []
[2016-01-26 15:20:02] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []

I believe these are new since the update.

[2016-01-26 14:40:02] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []
[2016-01-26 15:20:02] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []
[2016-01-26 18:27:07] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-26 18:40:04] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []
[2016-01-26 19:15:02] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []

Ok, so the SQL errors are gone. That’s good. Could you describe your email setup? Steps how to replicate those errors?

Yes. I’m using Mandrill. I test the connection and it works, it will even send me a test email.

I have a campaign set up to send out an email when it comes in. The lead source is set to Campaign Form with an Action being send email. I can see in the lead info where it says triggered send email event but they never go out. I know that because I don’t see them when I log into Mandrill.

Also, when I try to send an email to a lead, directly, I get the error I mentioned above. I get the same error message when I try to send a sample email to myself from the emails section.

Not sure if this will help, but this is what’s currently in the error log:

[2016-01-27 16:12:06] mautic.WARNING: Command mautic:leadlists:update exited with status code 255 [] []
[2016-01-27 16:12:06] mautic.ERROR: PDOException: SQLSTATE[HY000] [1040] Too many connections (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 while running console command mautic:leadlists:update [] []
[2016-01-27 18:40:48] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []
[2016-01-27 18:45:03] mautic.ERROR: Swift_RfcComplianceException: Address set in PathHeader does not comply with addr-spec of RFC 2822. (uncaught exception) at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 while running console command mautic:campaigns:trigger [] []

So, my error log was blank this morning so I tried sending an email and I see this error in the log:

[2016-01-28 17:34:28] mautic.CRITICAL: Uncaught PHP Exception Swift_RfcComplianceException: “Address set in PathHeader does not comply with addr-spec of RFC 2822.” at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php line 138 {“exception”:"[object] (Swift_RfcComplianceException(code: 0): Address set in PathHeader does not comply with addr-spec of RFC 2822. at /home/apps3ge/public_html/marketing/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/PathHeader.php:138)"} []

I discussed the error log with @alanhartless . He thinks that…

We did have somebody optimize it pretty well, as we run our own Reputation Management software off of it., one that we developed in-house. I can get with my developer if you think something needs to be added to optimize it better.

I got him involved and he turned on some more debugging and come to find out I mistyped the bounce email and that’s what’s been causing it. I was just able to send myself an email and I got it. I used bounce. instead of bounce@

I am facing the same problem.

Email sending works for test emails. However when a test email is sent for a small test list of 5 email ids, mautic confirms that the email is sent but they are not getting delivered!!
Can someone help? Mautic Version 2.1.1.1 installed using Bitnami stacks( local install)

Thanks