/**
* Sends a SMS message.
*
* @param \SimpleSoftwareIO\SMS\OutgoingMessage $message
* @return void
*/
public function send(OutgoingMessage $message)
{
$this->outgoingMessage = $message;
$me = $this;
$this->mailer->send($this->outgoingMessage->getView(), $this->outgoingMessage->getData(), function ($email) use($me) {
foreach ($me->outgoingMessage->getToWithCarriers() as $number) {
$email->to($me->buildEmail($number));
}
if ($me->outgoingMessage->getAttachImages()) {
foreach ($me->outgoingMessage->getAttachImages() as $image) {
$email->attach($image);
}
}
$email->from($me->outgoingMessage->getFrom());
});
}