aws-samples / amazon-connect-email-tasks

MIT No Attribution
9 stars 4 forks source link

Unable to send PDF file as attachment. #5

Open AadiSundar opened 1 year ago

AadiSundar commented 1 year ago

Hi Team,

Unable to send PDF file as attachment.

when a mail with a pdf attached is sent it is not received into connect. But mails with txt attachments are received.

i will get these error , while sending email with pdf document. and it was not landed in amazon connect.

see a snippet from the failed log "[ERROR] KeyError: 'text/plain' Traceback (most recent call last): File "/var/task/lambda_function.py", line 49, in lambda_handler str_base64_content = email_message["text/plain"]"

Thank you

vpalomog commented 1 year ago

Given the simple CCP interface used to present email content, handling attachments was not considered originally.