Kevin,
I changed the shebang line to #!/usr/bin/perl as you suggested. Otherwise, my sendmail.cgi file is the same as your previous post.
As for uploading through Dreamweaver, I didn't bother. I did my upload in terminal. Here is the code that uploaded my script:
ftp> put sendmail.cgi
local...
Thanks for your responses! I'm still a little lost. Kevin, I copied your code and made it my sendmail.cgi file. I'm still getting a 500 error. How do I upload in ASCII mode and what is chmod? How can I set chmod to 755? I'm running Mac OS X 10.4.8 and am uploading the file in Dreamweaver 8...
Hi,
I am new to PERL coding and I am stuck on my first CGI script. I am trying to make an email form work. Here is my script:
#!/usr/local/bin/perl -wT
use strict;
use CGI ':standard';
my ($to, $from, $name, $subject, $contents);
print "Content-type:text/html\n\n";
$to = param('to');
$from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.