Lines 1050-1055
sub SendQueuedMessages {
Link Here
|
1050 |
if ( C4::Context->preference('SMSSendDriver') eq 'Email' ) { |
1050 |
if ( C4::Context->preference('SMSSendDriver') eq 'Email' ) { |
1051 |
my $member = C4::Members::GetMember( 'borrowernumber' => $message->{'borrowernumber'} ); |
1051 |
my $member = C4::Members::GetMember( 'borrowernumber' => $message->{'borrowernumber'} ); |
1052 |
my $sms_provider = Koha::SMS::Providers->find( $member->{'sms_provider_id'} ); |
1052 |
my $sms_provider = Koha::SMS::Providers->find( $member->{'sms_provider_id'} ); |
|
|
1053 |
unless ( $sms_provider ) { |
1054 |
warn "Patron %s has no sms provider id set!" if $params->{'verbose'} or $debug; |
1055 |
next MESSAGE; |
1056 |
} |
1053 |
$message->{to_address} .= '@' . $sms_provider->domain(); |
1057 |
$message->{to_address} .= '@' . $sms_provider->domain(); |
1054 |
_send_message_by_email( $message, $params->{'username'}, $params->{'password'}, $params->{'method'} ); |
1058 |
_send_message_by_email( $message, $params->{'username'}, $params->{'password'}, $params->{'method'} ); |
1055 |
} else { |
1059 |
} else { |
1056 |
- |
|
|