> I client of mine has his site hosted on a server (Eplex) that
> has perl installed with sendmail but it won't work and they
> can't support it. They use FrontPage and Cold Fusion for
> that stuff. They don't allow Telnet access either. I can get
> a Perl form script to work, it just won't send the results.
>
> Could anyone advise me on what to do? Would installing
> sendmail in the cgi-bin work? If anyone has this untar-ed
> could you let me download it?
Sendmail... It does not quite work that way... Here is a snippet of
code from something:
---------------------------------------------------------
$sendmail="/usr/lib/sendmail -t -n";
open(SENDMAIL,"| $sendmail")|| die("\n CAN NOT OPEN MAIL \n\n");
print SENDMAIL "To: ",$to,"\n";
print SENDMAIL "Subject: ",$subj,"\n";
print SENDMAIL "X-Remote-Hos: ".$ENV{"REMOTE_ADDR"}."\n\n";
---------------------------------------------------------
The first statement sets up the sendmail command. Where Sendmail will
reside depends upon the installation. If that is wrong, nothing will
work.
Next, we open what amounts to a pipe to sendmail, and print to it.
Note the bar in the OPEN, establishing a pipe; and the double carriage
return after the last line -- that denotes the headers are complete. At
minimum, you need a "To: ", though other information like a subject do
help.
_IF_ you have sendmail where you point to it, THEN it should work, if
not, you get a puddle of bytes all over the floor.
[EMAIL PROTECTED] ------------------ [EMAIL PROTECTED]
----------------------- IMAGINEERING --------------------------
----------------- Every mouse click, a Vote -------------------
---------- Do they vote For, or Against your pages? -----------
--- Webmaster's Resources: http://www.mall-net.com/webcons/ ---
--- Web Imagineering -- Architecture to Programming CGI-BIN ---
---------------------------------------------------------------
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------