routeNotificationFor(static::via); $o = $this->setupEchomail($echoarea); Log::info(sprintf('%s:+ Creating TEST echomail in [%s]',self::LOGKEY,$echoarea->name)); $our = our_address($this->mo->fftn); $o->to = $this->mo->from; $o->fftn_id = $our->id; $o->replyid = $this->mo->msgid; $o->subject = 'Test Reply'; $o->kludges->put('CHRS:',$this->mo->kludges->get('chrs') ?: 'CP437 2'); // 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->set_tagline = 'I ate a clock yesterday, it was very time-consuming.'; $o->set_origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$our->ftn4d); $o->save(); return $o; } }