i need help in RichEditor::make('messages')

i send data to mail content, mail send well if the data contains text but when contains image error appearing where is the trick?
Solution:
Something with your mail settings
Jump to solution
8 Replies
Ahmed Ali
Ahmed AliOP10mo ago
->action(function ($record, $data) {
$arr = [];
$title = $title ?? $record->program->name;
if (!$record->deleted_at) {
$arr[] = $record->applicant->user->email;
}
if ($arr) {
Mail::send(new \App\Mail\notification($arr, $title, $data));
}
})
->action(function ($record, $data) {
$arr = [];
$title = $title ?? $record->program->name;
if (!$record->deleted_at) {
$arr[] = $record->applicant->user->email;
}
if ($arr) {
Mail::send(new \App\Mail\notification($arr, $title, $data));
}
})
public function __construct(public $email, public $title, public array $content)
{
//
}
public function content(): Content
{
// dd($this->content);
return new Content(
view: 'mail',
with: $this->content
);
}
public function __construct(public $email, public $title, public array $content)
{
//
}
public function content(): Content
{
// dd($this->content);
return new Content(
view: 'mail',
with: $this->content
);
}
any knowlidge guys?? array:1 [▼ // app\Mail\notification.php:42 "messages" => " <p><figure data-trix-attachment="{&quot;contentType&quot;:&quot;image/png&quot;,&quot;filename&quot;:&quot;Mario.png&quot;,&quot;filesize&quot;:1024215,&quot;height&quot;:1024,&quot;href&quot;:&quot;http://127.0.0.1:8000/storage/4aWc2pvvSVniKDYIqBCkqUtGBXnGtLkEOTaMTRGe.png&quot;,&quot;url&quot;:&quot;http://127.0.0.1:8000/storage/4aWc2pvvSVniKDYIqBCkqUtGBXnGtLkEOTaMTRGe.png&quot;,&quot;width&quot;:1000}" data-trix-content-type="image/png" data-trix-attributes="{&quot;presentation&quot;:&quot;gallery&quot;}" class="attachment attachment--preview attachment--png"><a href="http://127.0.0.1:8000/storage/4aWc2pvvSVniKDYIqBCkqUtGBXnGtLkEOTaMTRGe.png"><img src="http://127.0.0.1:8000/storage/4aWc2pvvSVniKDYIqBCkqUtGBXnGtLkEOTaMTRGe.png" width="1000" height="1024"><figcaption class="attachmentcaption"><span class="attachmentname">Mario.png</span> <span class="attachmentsize">1000.21 KB</span></figcaption></a></figure>test</p> ◀ " ] ```" <p>test<figure data-trix-attachment="{&quot;contentType&quot;:&quot;image/png&quot;,&quot;filename&quot;:&quot;Mario.png&quot;,&quot;filesize&quot;:1024215,&quot;height&quot;:1024,&quot;href&quot;:&quot;http://127.0.0.1:8000/storage/wMhKAHzXJdczQ7TAw7NLyBWu5rnT1ca227WRu1UQ.png&quot;,&quot;url&quot;:&quot;http://127.0.0.1:8000/storage/wMhKAHzXJdczQ7TAw7NLyBWu5rnT1ca227WRu1UQ.png&quot;,&quot;width&quot;:1000}" data-trix-content-type="image/png" data-trix-attributes="{&quot;presentation&quot;:&quot;gallery&quot;}" class="attachment attachment--preview attachment--png"><a href="http://127.0.0.1:8000/storage/wMhKAHzXJdczQ7TAw7NLyBWu5rnT1ca227WRu1UQ.png"><img src="http://127.0.0.1:8000/storage/wMhKAHzXJdczQ7TAw7NLyBWu5rnT1ca227WRu1UQ.png" width="1000" height="1024"><figcaption class="attachmentcaption"><span class="attachmentname">Mario.png</span> <span class="attachmentsize">1000.21 KB</span></figcaption></a></figure></p> ◀ "``` this how image render
krekas
krekas10mo ago
Nothing to do with filament
Ahmed Ali
Ahmed AliOP10mo ago
yes how to go you know my problem yes?
krekas
krekas10mo ago
I don't understand where's the error
Ahmed Ali
Ahmed AliOP10mo ago
i take richeditor data and send in mail it work but when insert image and direct pass data as previous i faced error let me show you the error
Solution
krekas
krekas10mo ago
Something with your mail settings
krekas
krekas10mo ago
As I said not filament related at all
Ahmed Ali
Ahmed AliOP10mo ago
you win
Want results from more Discord servers?
Add your server