- or download this
sub send_mail {
$CONFIG{mail_format} = 2;
...
return &send_mail_NT(@_);
}
- or download this
my ($sndrEml, $sndrNme, $rcvrEml, $rcvrNme, $subject, $message, $c
+crcEml,
$ccrcNme, $attPths) = @_;
- or download this
$sndrNme =~ s/\</\</ig;
$rcvrNme =~ s/\</\</ig;
...
$rcvrNme =~ s/\<.*?>//ig;
$subject =~ s/\<.*?>//ig;
$ccrcNme =~ s/\<.*?>//ig;
- or download this
sub _clean_value {
local $_ = shift;
...
s/\<.*?>//ig;
$_;
}
- or download this
$sndrNme = _clean_value($sndrNme);
$rcvrNme = _clean_value($sndrNme);
$subject = _clean_value($subject);
$ccrcNme = _clean_value($ccrcNme);
- or download this
($sndrNme, $rcvrNme, $subject, $ccrcNme) = map {
s/\</\</ig;
s/\<.*?>//ig;
$_;
} ($sndrNme, $rcvrNme, $subject, $ccrcNme);
- or download this
sub send_email {
# Set up values that *all* the EMail senders will need to know
...
my ($Eml, $Nme) = @_;
return $Nme =~ /\w+/ ? qq~$Eml ($Nme)~ : $Eml;
}