email form and smtp server

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
makeformwork
-


Joined: 22 Jan 2006
Posts: 1

PostPosted: Sun Jan 22, 2006 11:12 pm    Post subject: email form and smtp server Reply with quote

hello,
i am trying to get the following to work together to return email from a form. (it's kind of likely that a gap in my understanding is where the failure is happening!)

aprelium server
perl interpreter
bnbform.cgi (big nose bird html to email form)
QK SMTP Server 3
all on windows xp

my form calls bnbform.cgi ok (so I think i've got perl set up correctly) but I get an HTTP 500 message (and no email)

the cgi log shows the following message

"Can't modify constant item in scalar assignment at bnbform.cgi line 67, near ""localhost";"
Execution of bnbform.cgi aborted due to compilation errors.
CGI: [C:\Perl\bin\perl.exe bnbform.cgi ]
URI: /bnbform.cgi Broken pipe"

at line 67 i have set SMTP_SERVER="localhost"; (please let me know if pasting the rest of the code for bnbform would be helpful in answering my question)
and i was presuming that that was good enough to find my SMTP server?
maybe i've missed something about how to set up and run a local SMTP server?

cheers
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jan 23, 2006 2:52 pm    Post subject: Re: email form and smtp server Reply with quote

makeformwork wrote:
at line 67 i have set SMTP_SERVER="localhost"; (please let me know if pasting the rest of the code for bnbform would be helpful in answering my question)
and i was presuming that that was good enough to find my SMTP server?
maybe i've missed something about how to set up and run a local SMTP server?

There is a missing $ sign before the variable name:

Code:
$SMTP_SERVER="localhost";

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group