Re: CGI
by sstahl(at)shaw.ca
|
Date: |
Tue, 09 Apr 2002 18:57:41 -0600 |
To: |
Matthew Ohlman <matthew(at)ohlman.com> |
Cc: |
hwg-basics(at)hwg.org |
|
todo: View
Thread,
Original
|
|
You may want to try a simple PHP mailer script instead of this perl
one...
Scott.
----- Original Message -----
From: Matthew Ohlman <matthew(at)ohlman.com>
Date: Tuesday, April 9, 2002 5:17 pm
Subject: Re: CGI
> Manish and Jim. Hi, and thanks so much. I am really sorry if I
> seem to be bugging you, but.........I still couldn't get it to work.
> I used the code below, and still no effect. This time the error was:
>
> CGI Error
> The specified CGI application misbehaved by not returning a
> complete set of
> HTTP headers. The headers it did return are:
> The system cannot find the path specified.
>
> Any more ideas? I tried all the tips you listed below, but nothing
> seemed to help! When I tried to CHMOD, the FTP programs (I tried
> in two of them) said 501 Site Option not supported. As for my hosts
> FAQ, I dont think they have one. I think you asked which host it was
> That I used, it is AllSite (allsite.co.uk) They said the 20 dollar
> deal was
> only for a month, but it is still on their site!!
>
> Jim, I emailed my host yesterday and asked them where the email
> resided,and they said to use the sendmail standard features.
> Thanks to both of you
> for all your help!
>
> Have a great day.
> Matthew
>
> | Matthew Ohlman
> | Ohlman Pages
> | http://www.ohlman.com/
> "There's a difference between a philosophy and a bumper sticker. "
> Charles M. Schulz
>
> At 02:32 PM 4/9/02 +0530, Manish Sharma wrote:
> >Hi Matthew,
> >
> >The following code should work (set it up as per your
> requirements)... SInce
> >you are new to GCGI/Perl, let me know in case of problems.
> >
> > >>> From which company have you taken hosting? $20/year ... correct?
> >
> > #!/usr/bin/perl
> >{
> >#
> ># Change the following line to reflect to the correct sendmail
> path on your
> >server
> >#
> >$to = 'matthew\(at)ohlman.com';
> >$from = 'manish\(at)simplygraphix.com';
> >$subject = 'test';
> >$body = 'test thanks';
> >
> >$sendmail = "/usr/sbin/sendmail";
> >open(MAIL, "| $sendmail -t") or die "content-type:
> text/plain\n\nCouldn't>open sendmail with -f switch.\n";
> >
> >#
> ># The $from variable can also be set to contain a value from a
> HTML form
> >passed by a visitor
> >#
> >print MAIL "To: $to\n";
> >print MAIL "From: $from\n";
> >#
> ># DO NOT forget the two new line chars after the Subject line
> >#
> >print MAIL "Subject: $subject\n\n";
> >print MAIL "$body\n";
> >
> >#
> ># Be sure to close the mail program
> >#
> >close (MAIL);
> >}
> >
> >IMP Note that the email has a backslash (\) character before the @.
> >
> >(Also delete the comment tags once you are done)
> >
> >1). Upload the perl script in ASCII mode ONLY. (Explicitly
> specify ASCII
> >mode in your FTP program or if you are using the FTP shell
> program set the
> >mode to 'a')
> >2). CHMOD to 755 (some hosts will only allow 777 or 775...! Don't
> sk me why?
> >:-) Be sure to read the FAQs on their site)
> >
> >
> >Regards,
> >Manish Sharma
> >http://www.simplygraphix.com - Extreme Design
> >http://www.fontmagic.com - Largest True Type fonts directory on
> the Internet
> >http://www.webdevelopersnotes.com - Tutorials, tips, tricks, web
> page design
> >and much more
>
>
>
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA