mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-12 08:14:50 +02:00
+ fix option smtp
This commit is contained in:
parent
aacbb8c3cb
commit
23efe69fc3
@ -154,7 +154,7 @@ sub send_email {
|
|||||||
if (defined($self->{option_results}->{email_smtp_username}) && defined($self->{option_results}->{email_smtp_password})) {
|
if (defined($self->{option_results}->{email_smtp_username}) && defined($self->{option_results}->{email_smtp_password})) {
|
||||||
$smtp_options{-pass} = $self->{option_results}->{email_smtp_password};
|
$smtp_options{-pass} = $self->{option_results}->{email_smtp_password};
|
||||||
}
|
}
|
||||||
foreach my $option (@{$self->{option_results}->{smtp_options}}) {
|
foreach my $option (@{$self->{option_results}->{email_smtp_options}}) {
|
||||||
next if ($option !~ /^(.+?)=(.+)$/);
|
next if ($option !~ /^(.+?)=(.+)$/);
|
||||||
$smtp_options{-$1} = $2;
|
$smtp_options{-$1} = $2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user