Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Mail::Sendmail; #variable declarations etc... if ($old ne $curr) { my %mail = ( To => 'mail@there.com'', From => 'from@there.com', Subject => "Subject A", Message => "Subject A message here", ); $mail{smtp} = $mailserv; sendmail(%mail) || die "\nProblem! $Mail::Sendmail::error\n"; } elsif ($var eq $job) { my %mail = ( To => 'mail@there.com'', From => 'from@there.com', Subject => "Subject B", Message => "Subject B message here", ); $mail{smtp} = $mailserv; sendmail(%mail) || die "\nProblem! $Mail::Sendmail::error\n"; } else } my %mail = ( To => 'mail@there.com'', From => 'from@there.com', Subject => "Subject C", Message => "subject C message here", ); $mail{smtp} = $mailserv; sendmail(%mail) || die "\nProblem! $Mail::Sendmail::error\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advise on current Mail script
by Mr. Muskrat (Canon) on Jun 06, 2003 at 17:46 UTC | |
|
Re: Advise on current Mail script
by pzbagel (Chaplain) on Jun 06, 2003 at 17:46 UTC | |
|
Re: Advise on current Mail script
by blaze (Friar) on Jun 06, 2003 at 17:47 UTC | |
by Anonymous Monk on Jun 06, 2003 at 17:56 UTC | |
|
Re: Advise on current Mail script
by hacker (Priest) on Jun 07, 2003 at 12:50 UTC |