You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Nylas Ruby SDK does not allow users to set a custom content_id for attachments when sending emails as multipart/form-data. This limitation makes it difficult to use inline attachments, such as embedding images directly in the email body (e.g., <img src="cid:custom_content_id" />).
In the current implementation, the SDK automatically assigns attachment names like file0, file1, etc., when constructing the form request(source). While these names are internally treated as content_id by the Nylas API and can technically be used (e.g., <img src="cid:file0" />), users have no control over these identifiers. This lack of customization limits the flexibility and usability of inline attachments.
I would like the SDK to support user-defined content_id for attachments. Specifically:
Allow developers to specify a content_id for each attachment when constructing the email.
Use the provided content_id in place of the default names (file0, file1, etc.).
If no content_id is provided, fallback to the current behavior to ensure backward compatibility.
The text was updated successfully, but these errors were encountered:
It seems that the method at file_utils.rb#L90 changes the attachment handling between JSON and form-based approaches depending on the attachment size. As a result, the way content_id is referenced also changes. This behavior seems inconsistent and might be a bug
Currently, the Nylas Ruby SDK does not allow users to set a custom
content_id
for attachments when sending emails asmultipart/form-data
. This limitation makes it difficult to use inline attachments, such as embedding images directly in the email body (e.g.,<img src="cid:custom_content_id" />
).In the current implementation, the SDK automatically assigns attachment names like
file0
,file1
, etc., when constructing the form request(source). While these names are internally treated ascontent_id
by the Nylas API and can technically be used (e.g.,<img src="cid:file0" />
), users have no control over these identifiers. This lack of customization limits the flexibility and usability of inline attachments.I would like the SDK to support user-defined
content_id
for attachments. Specifically:content_id
for each attachment when constructing the email.content_id
in place of the default names (file0, file1, etc.).content_id
is provided, fallback to the current behavior to ensure backward compatibility.The text was updated successfully, but these errors were encountered: