![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
cgi scripts
I know that different web hosting companies have there systems setup different on how to access sendmail in cgi and that. I was wondering how this is setup on your servers. Anybody the paths that I would need for sending mail and that?
Thanks, |
|
#2
|
||||||||||||
|
||||||||||||
|
Wilburt, try -
/usr/sbin/sendmail -t -i
__________________
Regards to all
|
|
#3
|
|||
|
|||
|
I tried using that, but it is giving me an Interal Server Error. Stating the server encountered an internal error or misconfiguration and was unable to complete the request. The script works, it was on another server, but when I moved it does not work anymore. I know I needed to change the locations of where sendmail and perl were located at. I changed them to.
/usr/bin/perl /usr/sbin/sendmail. these are both correct aren't they? Thanks for the help. |
|
#4
|
||||||||||||
|
||||||||||||
|
Wilburt,
/usr/sbin/sendmail works for me.... but just to be 'sure' have you tried running a phpinfo file? It wil ltell every location you need.
__________________
Regards to all
|
|
#5
|
|||
|
|||
|
No I haven't tried to run the phpinfo file. How do I go about that? I know nothing about php.
Thanks, appreciate all the help. |
|
#6
|
||||||||||||
|
||||||||||||
|
Wilbert check you PM box, Ill send you the file etc....
__________________
Regards to all
|
|
#7
|
|||||||||||
|
|||||||||||
|
same here
i encounter the same problem as well.
have you guys managed to solve this problem? |
|
#8
|
|||||||||||
|
|||||||||||
|
Problem??
Well since I have not seen a support ticket on the as of yet then the problem has not been fixed. Please submit a support ticket with a link to the non working script and I will be happy to check it out for you.
|
|
#9
|
|||||||||||
|
|||||||||||
|
My scripts work fine. I use the following paths:
/usr/bin/perl /usr/sbin/sendmail Is your script requiring any other paths to be specified? |
|
#10
|
|||||||||||
|
|||||||||||
|
it works fine now, after i sent a trouble ticket to maxtrix. they said it's a folder permission problem
![]() nevertheless, the recipient can only be the email address within the domain. can it be external email address as well? |
|
#11
|
|||||||||||
|
|||||||||||
|
This depends on how your script is written. What script are you using?
|
|
#12
|
|||||||||||
|
|||||||||||
|
The script below is placed in root folder of mydomain.com
<body> <form name="formmail" action="/cgi-bin/formmail/formmail.cgi" method="post"> <input type=hidden name="recipient" value="webmaster@mydomain.com"> <!-- blah blah blah --> <p><b>Subject:</b><br> </form> </body> whenever i change the recipient to any external email address like webmaster@yourdomain.com, it will return script error : Internal Server Error. it works great as long as i use email address within the mydomain.com. what other parameters that i need to pass to the formmail cgi inorder to accept external email address as recipient? million thanks~ |
|
#13
|
|||||||||||
|
|||||||||||
|
I'm not a programmer, but I know the script I use (see below - it's free), the recipients are specified within the script and not within the HTML form (keeps spammers from your email). You also have to specify the reffering domain.
Goto NMS Sendmail (it's suppose to be a more secure version of Matt Wright's formmail script). I have used this scirpt and the folks at NMS even provide support for a FREE script if you can imagine that! It would be hard to help you without actually seeing how your script is written. |
|
#14
|
|||||||||||
|
|||||||||||
|
cgi-bin
hi sandgnat,
how do you resolve the file permission issue in cgi-bin? i have tried upload other cgi scripts in the cgi-bin folder, however, it always returns "permission denied issue", refer below :- fopen: Permission denied [Mon Dec 23 02:01:38 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi [Mon Dec 23 02:02:55 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi [Mon Dec 23 02:04:21 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi failed to open log file fopen: Permission denied [Mon Dec 23 02:06:08 2002] [error] [client 192.169.41.37] Premature end of script headers: /hsphere/local/home/bizlite/demo.com/cgi-bin/referralhub.cgi i have chmod to -rwxr-xr-x, follow exactly like the integrated formmail, but it doesn't work.. regards, frederick |
|
#15
|
|||||||||||
|
|||||||||||
|
Are you using the NMS Sendmail script? If so, once you place the FormMail.pl script in your cgi-bin, you must set the permission for the script to 755.
Within the script, you must specify certain things. Here's the settings I used: $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 1; $mailprog = '/usr/sbin/sendmail -oi -t'; @referers = qw(yourdomain.com); @allow_mail_to = qw(you@yourdomain.com); @recipients = (); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT); $locale = ''; $charset = 'iso-8859-1'; $date_fmt = '%A, %B %d, %Y at %H:%M:%S'; $style = (); $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $send_confirmation_mail = 0; If you want to see how I set up the HTML form, I made you a page to look at here. Just view the source code. If this doesn't help. Let me know. -Martha |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Path for CGI scripts | ewsonline | Chit Chat Public | 1 | 12-22-2005 07:14 PM |