Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now here is where I am trying to put it in my open pipe area and here are some of my many attempts that are not working.sub mal { print "Content-type: text/html\n\n"; print "<html><head><title>Sendmail problem</title></head>\n"; print "<body bgcolor=\"white\">\n"; print "<center><strong><h2><font color=red>Mail is down</font></h2 ></strong></center>\n"; print "</body></html>\n"; exit; }
open (MAIL,"|$sendmail") || warn "&mal";
open (MAIL,"|$sendmail") || die &mal;
open (MAIL,"|$sendmail") || &mal;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Web page output for sendmail problem
by iburrell (Chaplain) on Nov 21, 2002 at 17:54 UTC | |
by Anonymous Monk on Nov 21, 2002 at 18:39 UTC | |
|
Re: Web page output for sendmail problem
by arrow (Friar) on Nov 21, 2002 at 20:44 UTC | |
by Anonymous Monk on Nov 22, 2002 at 16:46 UTC | |
|
Re: Web page output for sendmail problem
by arrow (Friar) on Nov 22, 2002 at 21:31 UTC |