Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send attachment data to Ray #357

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Send attachment data to Ray #357

wants to merge 4 commits into from

Conversation

riasvdv
Copy link
Member

@riasvdv riasvdv commented Jul 11, 2024

This still needs an update to Ray to display the attachments (and download them).

@freekmurze
Copy link
Member

Very nice!

@sebastienhenau Could you add support for this in the Ray app?

'filename' => $attachmentPart->getFilename(),
'content_id' => $attachmentPart->getContentId(),
'content_type' => $attachmentPart->getContentType(),
'content' => base64_encode($attachmentPart->getContent()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth checking the size of the content before doing this? Ray can sometimes struggle a bit with large payloads in my experience.

return $this->markdown('mails.test');
return $this->markdown('mails.test')
->attachData('file1', 'file_1.txt')
->attachData('file2', 'file_2.txt');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to test attaching binary files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants