PHP Amazon SES v3 – Missing Required Header ‘From’

Question:

I have to upgrade my PHP Amazon SES API from version v2 to version v3. The same code I had working in v2 does not working in the v3.

Follow the code:

When I run the code I got the error:

But this code worked with the API v2.

What is wrong here?

Answer:

I digged into the AWS SDK source code and I realize that I do not need to encode the message.

So, I removed the base64_encode function and everything is working now!!

The final code is:

Leave a Reply