Help for this page

Select Code to Download


  1. or download this
     open(SENDMAIL, "|/usr/sbin/sendmail -t") || die "Cannot open sendmail
    +: $!";
        print SENDMAIL "From: some_email\@somewhere.com\n";
    ...
        print SENDMAIL "\n\n";
        print SENDMAIL $some_content;
        close (SENDMAIL) or die "Cannot close sendmail: $!";
    
  2. or download this
    `echo "$msgbody"|mail -s "$subject!" user\@somewhere.com`;