[BUG] azure-communication-email:1.1.0-beta.1 - cannot send email with attachments #43462
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Cannot send email with attachments with version 1.1 beta1
Exception or Stack Trace
The error I'm getting back is:
Status code 400, "{"error":{"code":"BadRequest","message":"Request body validation error. ContentBytes invalid. Should be base64.","target":null,"details":null,"innererror":null}}"
To Reproduce
Try to send the mail with attachments, see code below.
Code Snippet
Expected behavior
E-mail is queued
Screenshots
N/A
Setup (please complete the following information):
Additional context
Works well with 1.0.18. I want to upgrade to 1.1 version to be able to set CID and refer images from the html content, but pure change of the package version causes this issue.
Information Checklist
The text was updated successfully, but these errors were encountered: