Hi tachyon,

Thanks for your reply, yes, I started to go a bit overboard with 'sysopen'. I have modified the code as you suggested

open(SENDMAIL, '|/usr/sbin/sendmail -oi -t') or do{ unlink($outfile); diehtml("Can't fork for sendmail: $!\n")};

and the explanation helped a lot to get a better idea of this. You will then be doing this:

print SENDMAIL $msg close SENDMAIL;

Yes, there are pages of text, just beforehand though, is this

print SENDMAIL <<"EOF";

.. and at the end

EOF close(SENDMAIL) or warn "sendmail didn't close nicely";

I have PRINT instaed of the 'warn'. I actually added the 'warn' lines as you suggested, but they didn't appear. That just could be because, for testing, I'm just hitting the BACK button twice, because I'm lazy and don't want to fill in all those details on the order form again. What I'm saying is, even though I changed the Perl script, uploaded it, it may not have ben 'reloaded' in the browser. Hmm, that's not true, I have added extra 'prints' in the last few days, and they appeared immediately.

Anyway, onto SSH access and sendmail; now I'm _really_ confused, here's the output

---------------------------------

which sendmail

which: no sendmail in (/usr/local/bin:/bin:/usr/bin)

/usr/sbin/sendmail -t

2003-10-03 04:03:17 Exim configuration error in line 783:

user mailman was not found

----------------------------------

.... but in the CPanel it says

Path to sendmail /usr/sbin/sendmail

and I run FormMail.pl (NMS version) on 2 domains on the same server, without any problems ? NMS have this line though

L<CGI::NMS::Mailer::Sendmail>

... so it looks like they have their own 'sendmail' modules, is that right ? Looks like I'd better post to the Help Desk where the server is. :)

Thanks a lot,

Peter


In reply to Re: Re: Sendmail problems by peterr
in thread Sendmail problems by peterr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.