|
Lines 534-539
sub EnqueueLetter ($) {
Link Here
|
| 534 |
return unless exists $params->{'borrowernumber'}; |
534 |
return unless exists $params->{'borrowernumber'}; |
| 535 |
return unless exists $params->{'message_transport_type'}; |
535 |
return unless exists $params->{'message_transport_type'}; |
| 536 |
|
536 |
|
|
|
537 |
my $content = $params->{letter}->{content}; |
| 538 |
$content =~ s/\s+//g if(defined $content); |
| 539 |
if ( not defined $content or $content eq '' ) { |
| 540 |
warn "Trying to add an empty message to the message queue"; |
| 541 |
return; |
| 542 |
} |
| 543 |
|
| 537 |
# If we have any attachments we should encode then into the body. |
544 |
# If we have any attachments we should encode then into the body. |
| 538 |
if ( $params->{'attachments'} ) { |
545 |
if ( $params->{'attachments'} ) { |
| 539 |
$params->{'letter'} = _add_attachments( |
546 |
$params->{'letter'} = _add_attachments( |
| 540 |
- |
|
|