I want to send email from my Ubuntu server thru Amazon AWS SES. I've a working code and it's able to send an email.
However when I wrap the working code within a function it's giving this error:
Something with SMTP went wrong...
(554, b'Transaction failed: Nested group')
I'm attaching visual code comparison, .. I'm curious as to what could be wrong.
