Skip to content

Commit

Permalink
Merge pull request #1 from fotografde/no-from
Browse files Browse the repository at this point in the history
Sender is not always required when sending an SMS, as SMS gateway pro…
  • Loading branch information
felixmaier1989 authored Aug 24, 2017
2 parents 0f16150 + f9acafa commit 4981bac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Lib/Network/Sms/CakeSms.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,6 @@ public function transportClass() {
* @throws SocketException
*/
public function send($content = null) {
if (empty($this->_from)) {
throw new SocketException(__d('cake_dev', 'From is not specified.'));
}
if (empty($this->_to)) {
throw new SocketException(__d('cake_dev', 'You need to specify at least one destination for to.'));
}
Expand Down

0 comments on commit 4981bac

Please sign in to comment.