[smokeping-users] Re: alert mail to several addresses

Dmitry Melekhov dm at belkam.com
Mon Jan 26 06:46:08 MET 2004


Hello!

This little code allows me send  mails to several comma delimitired 
addresses:

vader:/usr/local/smokeping/lib # diff Smokeping.pm Smokeping.pm.orig
105,110c105
<         my @a=split(',',$to);
<         my $i=0;
<         for ($i; $i<=length(@a); $i++) {
< #     $smtp->to($to);
<         $smtp->to($a[$i]);
<       }
---
 >       $smtp->to($to);


Sorry, I'm not programmer ;-)


--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list