mo = $mo; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return Netmail * @throws \Exception */ public function toNetmail(object $notifiable): Netmail { $o = $this->setupNetmail($notifiable); $ao = $notifiable->routeNotificationFor(static::via); Log::info(sprintf('%s:+ Creating ECHOAREA NO WRITE netmail to [%s]',self::LOGKEY,$ao->ftn)); $o->subject = sprintf('Echomail #%s rejected to %s',$this->mo->msgid,$this->mo->echoarea->name); // Message $msg = $this->page(FALSE,'nowrite'); $msg->addText($this->sourceSummary($this->mo)."\r\r"); $msg->addText(sprintf("It appears that you do not have permission to post in [%s] using the address [%s], so the message from your system was rejected.\r\r",$this->mo->echoarea->name,$ao->ftn)); $msg->addText("Please contact the ZC if you think this is a mistake.\r\r"); $msg->addText($this->message_path($this->mo)); $o->msg = $msg->render(); $o->set_tagline = 'See something wrong? Do something right.'; $o->save(); return $o; } }