PHP Class SimpleSoftwareIO\SMS\Drivers\EmailSMS

Inheritance: implements SimpleSoftwareIO\SMS\Drivers\DriverInterface
Show file Open project: simplesoftwareio/simple-sms

Public Methods

Method Description
__construct ( Illuminate\Mail\Mailer $mailer ) Creates the EmailSMS Instance.
send ( OutgoingMessage $message ) : Illuminate\Mail\Message Sends a SMS message via the mailer.

Protected Methods

Method Description
buildEmail ( array $number, OutgoingMessage $message ) : string Builds the email address of a number.
generateMessage ( Illuminate\Mail\Message $email, OutgoingMessage $message ) : Illuminate\Mail\Message Generates the Laravel Message Object.
lookupGateway ( string $carrier, boolean $mms ) : string Finds the gateway based on the carrier and MMS.
sendRaw ( OutgoingMessage $message ) : Illuminate\Mail\Message Sends a SMS message via the mailer using the raw method.

Method Details

__construct() public method

Creates the EmailSMS Instance.
public __construct ( Illuminate\Mail\Mailer $mailer )
$mailer Illuminate\Mail\Mailer

buildEmail() protected method

Builds the email address of a number.
protected buildEmail ( array $number, OutgoingMessage $message ) : string
$number array
$message SimpleSoftwareIO\SMS\OutgoingMessage
return string

generateMessage() protected method

Generates the Laravel Message Object.
protected generateMessage ( Illuminate\Mail\Message $email, OutgoingMessage $message ) : Illuminate\Mail\Message
$email Illuminate\Mail\Message
$message SimpleSoftwareIO\SMS\OutgoingMessage
return Illuminate\Mail\Message

lookupGateway() protected method

Finds the gateway based on the carrier and MMS.
protected lookupGateway ( string $carrier, boolean $mms ) : string
$carrier string
$mms boolean
return string

send() public method

Sends a SMS message via the mailer.
public send ( OutgoingMessage $message ) : Illuminate\Mail\Message
$message SimpleSoftwareIO\SMS\OutgoingMessage
return Illuminate\Mail\Message

sendRaw() protected method

Sends a SMS message via the mailer using the raw method.
protected sendRaw ( OutgoingMessage $message ) : Illuminate\Mail\Message
$message SimpleSoftwareIO\SMS\OutgoingMessage
return Illuminate\Mail\Message