Help for this page

Select Code to Download


  1. or download this
    sub send_mail {
        $CONFIG{mail_format} = 2;
    ...
    
            return &send_mail_NT(@_);
        }
    
  2. or download this
        my ($sndrEml, $sndrNme, $rcvrEml, $rcvrNme, $subject, $message, $c
    +crcEml, 
            $ccrcNme, $attPths) = @_;
    
  3. or download this
        $sndrNme =~ s/\&lt;/\</ig;
        $rcvrNme =~ s/\&lt;/\</ig;
    ...
        $rcvrNme =~ s/\<.*?>//ig;
        $subject =~ s/\<.*?>//ig;
        $ccrcNme =~ s/\<.*?>//ig;
    
  4. or download this
    sub _clean_value {
        local $_ = shift;
    ...
        s/\<.*?>//ig;
        $_;
    }
    
  5. or download this
        $sndrNme = _clean_value($sndrNme);
        $rcvrNme = _clean_value($sndrNme);
        $subject = _clean_value($subject);
        $ccrcNme = _clean_value($ccrcNme);
    
  6. or download this
        ($sndrNme, $rcvrNme, $subject, $ccrcNme) = map {
            s/\&lt;/\</ig;
            s/\<.*?>//ig;
            $_;
        } ($sndrNme, $rcvrNme, $subject, $ccrcNme);
    
  7. 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;
    }