Commit 2b08eccd authored by Leigh Stoller's avatar Leigh Stoller

Make the "To" argument of SENDMAIL() function optional.

parent f8de754a
......@@ -123,7 +123,9 @@ sub SENDMAIL($$$;$$@)
print MAIL "$Headers\n";
}
print MAIL "X-NetBed: $SCRIPTNAME\n";
print MAIL "To: $To\n";
if (defined($To)) {
print MAIL "To: $To\n";
}
print MAIL "Subject: $tag: $Subject\n";
print MAIL "\n";
print MAIL "$Message\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment