public function send(SmsMessage $message) { $me = $this; $this->mailer->send($message->getView(), $message->getData(), function ($email) use($me, $message) { $isSMS = $message->isMMS(); foreach ($message->getToWithCarriers() as $number) { $email->to($me->buildEmailAddress($number, $isSMS)); } if ($message->getAttachImages()) { foreach ($message->getAttachImages() as $image) { $email->attach($image); } } $email->from($message->getFrom()); }); }