LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   cgi script trouble (https://www.linuxquestions.org/questions/programming-9/cgi-script-trouble-181424/)

Michele 05-14-2004 10:40 AM

cgi script trouble
 
Will my cgi script run on my web server if my mailserver is a different machine? I'm running Mandrake 9.2 and Apache 2.0

Thanks

david_ross 05-14-2004 12:53 PM

I can't see why not bit then it depends on what your script does.

Michele 05-14-2004 02:54 PM

cgi script trouble
 
The form just take some info from a web page, name address etc. and mails it to an email address, but when I test it I keep getting a 500 error.

Michele

Michele 05-14-2004 03:08 PM

new info cgi script trouble
 
Ok, I put a -w after the /usr/bin/perl and the form came back with this error

CGI script error cannot start /usr/lib/sendmail

How do I tell it to go to the other server and use that sendmail which is really postfix?????

Michele

david_ross 05-14-2004 03:14 PM

Rather than writing directly to a sendmail program try changing it to use the MIME::Lite module and comminicate directly with your SMTP server.

Michele 05-14-2004 03:23 PM

??
 
Sorry, but how do I do that?

I'm assuming I substitute something in place of /usr/lib/sendmail but what does it look like? I'm a newbie.

Thanks,

Michele


All times are GMT -5. The time now is 06:08 PM.