-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
base: main
Are you sure you want to change the base?
Conversation
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()), |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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?
Dear contributor, because this pull request seems to be inactive for quite some time now, I've automatically closed it. If you feel this pull request deserves some attention from my human colleagues feel free to reopen it. |
This still needs an update to Ray to display the attachments (and download them).