I'm having an issue where when I change the address_style in my NMS formmail, I get a close sendmail pipe failed error. Typically, one would think: Okay, my path is wrong, but as you'll see below, it's not. Also, it works if address_style is set to zero, so the program is working at times. It also seems that because of this, all my e-mails (When address_style=0) are sent from something like [username]@box350.bluehost.com.
Here is all my code. The asterisks are of course real data in my files.
Code:<form method="post" action="/cgi-bin/mymail.pl" onsubmit="report();return send404(this);"> <div> <input type="hidden" name="realname" value="*****" /> <input type="hidden" name="email" value="*****" /> <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,REMOTE_USER,HTTP_USER_AGENT" /> <input type="hidden" name="subject" value="Webpage Error" /> <input type="hidden" name="recipient" value="2" /> <input type="hidden" name="redirect" value="*****" /> <input type="hidden" name="comments" id="comments" value="" /> <input type="submit" value="Send 404 Error" /> </div> </form>
Here's the configurable part of the Perl file.
This is an extremely aberrant issue, and I've gotten no support elsewhere. Your insight and ideas will be much appreciated.Code:BEGIN { $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 5; $mailprog = '/usr/sbin/sendmail -oi -t'; $postmaster = ''; @referers = qw(); @allow_mail_to = qw(*****); @recipients = (); %recipient_alias = ( '1',*****', '2','*****' ); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT); $locale = ''; $charset = 'iso-8859-1'; $date_fmt = '%A, %B %d, %Y at %H:%M:%S %Z'; $style = '/css/nms.css'; $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $address_style = 0; $send_confirmation_mail = 0; #This is what I can't change without getting an error. $confirmation_text = <<'END_OF_CONFIRMATION'; From: you@your.com Subject: form submission Thank you for your form submission. END_OF_CONFIRMATION
Thanks!


The page isn't even from that domain, it's from a different one.
