invitation = $invitation; } /** * Build the message. * * @return $this */ public function build() { $entity_type = class_basename(lcfirst($this->invitation->getEntityType())); $subject = ctrans("texts.notification_{$entity_type}_bounced_subject", ['invoice' => $invoice->number]); return $this->from($invitation->user->email) ->text() ->subject($subject); //todo /* //todo determine WHO is notified!! In this instance the _user_ is notified Mail::to($invitation->user->email) //->cc('') //->bcc('') ->queue(new BouncedEmail($invitation)); return $this->from('turbo124@gmail.com') //todo ->subject(ctrans('texts.confirmation_subject')) ->markdown('email.auth.verify', ['user' => $this->user]) ->text('email.auth.verify_text'); */ } }