mo = $mo; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return Echomail * @throws \Exception */ public function toEchomail(object $notifiable): Echomail { $o = $this->setupEchomail($this->mo,$notifiable); $echoarea = $notifiable->routeNotificationFor(static::via); Log::info(sprintf('%s:+ Creating test echomail to [%s]',self::LOGKEY,$echoarea)); $o->to = $this->mo->user_from; $o->subject = 'Test Reply'; // Message $msg = new Page; $header = new Thick; $header->addText('Clearing Houz'); $msg->addHeader($header,'FTN Mailer and Tosser',TRUE,0xc4); $lbc = new Thin; $lbc->addText('Test'); $msg->addLeftBoxContent($lbc,TRUE); $msg->addText( sprintf("Your test was received here on %s and it looks like you sent it on %s. If that is correct, then it took %s to get here.\r\r", Carbon::now()->utc()->toDateTimeString(), $this->mo->date->utc()->toDateTimeString(), $this->mo->date->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE]) ) ); $msg->addText($this->message_path($this->mo)); $o->msg = $msg->render(); $o->tagline = 'I ate a clock yesterday, it was very time-consuming.'; $o->save(); return $o; } }