Error when sending emails
-
I have email configured correctly and test emails work just fine.
However, when I go into an email I create in mautic and click on Send example I get an error message

In the logs, I get this message
Jun 14 19:12:03 [Sat Jun 15 01:12:03.571866 2024] [php:warn] [pid 436] [client 172.18.0.1:56436] PHP Warning: Undefined array key 1 in /app/code/app/bundles/EmailBundle/Helper/MailHelper.php on line 1818, referer: https://mautic.domain.com/s/emails/view/2
Jun 14 19:12:03 xxx.xxx.xxx.xxx - - [15/Jun/2024:01:12:03 +0000] "POST /s/emails/sendExample/2?mauticUserLastActive=20&mauticLastNotificationId= HTTP/1.1" 500 70079 "https://mautic.domain.com/s/emails/view/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
Jun 14 19:12:04 xxx.xxx.xxx.xxx - - [15/Jun/2024:01:12:04 +0000] "GET /media/js/libraries.js?va5e6c6f2&mauticUserLastActive=20&mauticLastNotificationId= HTTP/1.1" 200 517726 "https://mautic.domain.com/s/emails/view/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" -
I have email configured correctly and test emails work just fine.
However, when I go into an email I create in mautic and click on Send example I get an error message

In the logs, I get this message
Jun 14 19:12:03 [Sat Jun 15 01:12:03.571866 2024] [php:warn] [pid 436] [client 172.18.0.1:56436] PHP Warning: Undefined array key 1 in /app/code/app/bundles/EmailBundle/Helper/MailHelper.php on line 1818, referer: https://mautic.domain.com/s/emails/view/2
Jun 14 19:12:03 xxx.xxx.xxx.xxx - - [15/Jun/2024:01:12:03 +0000] "POST /s/emails/sendExample/2?mauticUserLastActive=20&mauticLastNotificationId= HTTP/1.1" 500 70079 "https://mautic.domain.com/s/emails/view/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
Jun 14 19:12:04 xxx.xxx.xxx.xxx - - [15/Jun/2024:01:12:04 +0000] "GET /media/js/libraries.js?va5e6c6f2&mauticUserLastActive=20&mauticLastNotificationId= HTTP/1.1" 200 517726 "https://mautic.domain.com/s/emails/view/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"@privsec said in Error when sending emails:
Jun 14 19:12:03 [Sat Jun 15 01:12:03.571866 2024] [php:warn] [pid 436] [client 172.18.0.1:56436] PHP Warning: Undefined array key 1 in /app/code/app/bundles/EmailBundle/Helper/MailHelper.php on line 1818, referer: https://mautic.domain.com/s/emails/view/2
This does seem like some internal mautic code issue ("Undefined array key"). Which version of mautic is this? Atleast, it works here.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login