我正在使用 azure-communication-email 库通过 Azure 服务发送电子邮件。
我需要添加 Base64 格式的图像作为附件,并定义一个内容 Id 以在
<img src="cid:myimagecid">
标签中引用它。
问题是 EmailAttachment 只允许定义:
attachment = EmailAttachment(
name="attachment.png",
attachment_type="png",
content_bytes_base64=file_bytes_b64
)
有什么方法可以在附件中定义该Content Id吗?