src/Watchers/MailWatcher.php
public function recordMail(MessageSent $event)
    {
        if (! Telescope::isRecording()) {
            return;
        }

        Telescope::recordMail(IncomingEntry::make([
            'mailable' => $this->getMailable($event),
            'queued' => $this->getQueuedStatus($event),
            'from' => $event->message->getFrom(),
            'replyTo' => $event->message->getReplyTo(),
            'to' => $event->message->getTo(),
            'cc' => $event->message->getCc(),
            'bcc' => $event->message->getBcc(),
            'subject' => $event->message->getSubject(),
            'html' => $event->message->getBody(),
            'raw' => $event->message->toString(),
        ])->tags($this->tags($event->message, $event->data)));
    }
public function recordMail(MessageSent $event)
    {
        if (! Telescope::isRecording()) {
            return;
        }

        Telescope::recordMail(IncomingEntry::make([
            'mailable' => $this->getMailable($event),
            'queued' => $this->getQueuedStatus($event),
            'from' => $event->message->getFrom(),
            'replyTo' => $event->message->getReplyTo(),
            'to' => $event->message->getTo(),
            'cc' => $event->message->getCc(),
            'bcc' => $event->message->getBcc(),
            'subject' => $event->message->getSubject(),
            'html' => $event->message->getBody(),
            'raw' => $event->message->toString(),
        ])->tags($this->tags($event->message, $event->data)));
    }
public function recordMail ( MessageSent $ event ) { if ( ! Telescope :: isRecording ( ) ) { return ; } Telescope :: recordMail ( IncomingEntry :: make ( [ 'mailable' => $ this -> getMailable ( $ event ) , 'queued' => $ this -> getQueuedStatus ( $ event ) , 'from' => $ event -> message -> getFrom ( ) , 'replyTo' => $ event -> message -> getReplyTo ( ) , 'to' => $ event -> message -> getTo ( ) , 'cc' => $ event -> message -> getCc ( ) , 'bcc' => $ event -> message -> getBcc ( ) , 'subject' => $ event -> message -> getSubject ( ) , 'html' => $ event -> message -> getBody ( ) , 'raw' => $ event -> message -> toString ( ) , ] ) -> tags ( $ this -> tags ( $ event -> message , $ event -> data ) ) ) ; }
Record a mail message was sent.

@param  \Illuminate\Mail\Events\MessageSent  $event
@return void
Record a mail message was sent .