Send email by sparkpost API getting unauthorize

Your software
My Mautic version is: v4.2.1
My PHP version is: 7.4.29
My Database type and version is: MySQL 5.7

Your problem
My problem is:
Unable to do Email sendout VIA sparkpost API, right now we are sending VIA SMTP and that is slow.

These errors are showing in the log:
When trying to send email by sparkpost API getting unauthorize! error. Screenshot attached.

Steps I have tried to fix the problem:
I have no clue how to solve this, so please suggest!

1 Like

Hi.

Can you get the log from Mautic?

When I clicked test the connection, did it work?

Try changing the “Service to send email” setting to test.

It show success, but in log I got error message “error message - Unauthorized”.

Hello @gustavokennedy I got it solved by updating the file “/vendor/sparkpost/sparkpost/lib/SparkPost/SparkPost.php”.

Thanks,
Anil

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.