in reply to TKI cart

RUN! Do not walk! to the nearest source for an alternate to formmail. NMS has already been mentioned, TFMail (from London Perl Mongers, IIRC) is another.

formmail.pl is notorious for its security failings. And if TKI is from the same source (Matt's), get rid of it too!

Update: Turning to a question more closely related to the one you actually posed:

There's very little efficiency or true economy in using the main domain's cgi-bin directory for the subdomain's business. OTOH, there are many ways that doing so can create issues or problems you don't need. For an almost trivial example, you won't be able to readily distinguish between mail sent from one site and mail from the other without extra effort (revising your form, for example).

Your server's setup (your own or a service?) may also be a problem. If you're using a service, ask their un-helpful desk; if it's your own, you probably need to explore the delights of the relevant (Apache?) documentation. In fact, information about the server might make it possible for a Monk to offer more substantive advice.

Replies are listed 'Best First'.
Re^2: TKI cart
by Anonymous Monk on Jun 10, 2010 at 17:33 UTC

    My sub domain has its own cgi-bin and all that is relevent, this is why I do not understand why the path will not work.

    I am not trying to use the cgi-bin of the main domain.

      You really need to post more complete data about the subdomain -- such as, where is its cgi-bin in relation to the page from which index.html is served... and what the structural relationship is between the page with the form and the location of your problem children. I'm looking for ASCII art or an absolutely unambiguous narrative so I can feel confident that I know what you're trying to tell me.

      At one point above, you cite what appears to be an attept to use an absolute path:

      www.mywebsite/cgi-bin/formmail.

      To me, it looks as though you've concealed the TLD for no reason or don't understand paths. And if you're using this to execute formmail.pl, formail.cgi or something else, you're either missing the file extension or have formmail.pl stashed in a subdir of cgi-bin (which your host may not have setup as an directory with executables) and have not included the executable's name at all.

      That kind of thing -- narrative that is, at best, ambiguous until you clarify, and clearly errorneous technical data like that cited above -- makes it very difficult to offer prescriptions for a fix. It's like asking an MD to prescribe when it's not clear whether you have appendicitis or food poisoning.

      And just BTW, it's a really good idea to log in, since you are a Monk... because you can't fix -- for example -- your typos in that which you post anonymously... and we can't be sure the posts actually come from you (as opposed -- for example -- from a troll trying to confuse your issues).

        Just got back to where I can try to do some work on this problem.

        I will post an entire description of what I am doing ASAP

        As you can probably guess PERL is not something I am to familiar with, thank you for your help and patience

        Monks,

        I am posting both my formmail.pl and the html for my comments page, this is the exact code for both.

        I have the formmail in the cgi-bin prior to my shopping cart, this works fine on my main site but so far whenever I try to use the form on the new site the browser says the link appears to be broken, I get no server error messages.

        BEGIN { $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 1; $mailprog = '/usr/sbin/sendmail -oi -t'; $postmaster = 'referral@stonebeads.com'; @referers = qw(72.167.232.53 stonebeads.com localhost); @allow_mail_to = qw(stonebeads.com slocalhost); @recipients = (); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USE +R_AGENT); $locale = ''; $charset = 'iso-8859-1'; $date_fmt = '%A, %B %d, %Y at %H:%M:%S'; $style = '/css/nms.css'; $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $send_confirmation_mail = 0; $confirmation_text = <<'END_OF_CONFIRMATION'; From: you@your.com Subject: form submission Thank you for your form submission. END_OF_CONFIRMATION # You may need to uncomment the line below and adjust the path. # use lib './lib'; # USER CUSTOMISATION SECTION # -------------------------- # Place any custom code here # USER CUSTOMISATION << END >>
        <table width=40% cellpadding=10 border=1><tr><td> <!-begin online question comment form-> <center><h4><font color="#FF0000">PLEASE FILL OUT AND SUBMIT</font></h +4> <form method="post" action="/cgi-bin/formmail.pl"> <input type=hidden name="subject" value="Check form order"> <input type=hidden name="redirect"value="http://www.stonebeads.com"> + <input type=hidden name="recipient" value="daniel@stonebeads.com"> <input type=hidden name="print_blank_fields" value="1"> <input type=hidden name="env_report" value="http_user_agent,remote_add +r"> <br> <h5> <br>Your Email address:&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name +="email address" size="35" maxlength="55" value> <br><br> YourName:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& +nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="tex +t" name="Your Name" size="35" maxlength="45" value> <br><br> Telephone Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name +=" address" size="35" maxlength="55" value> <br><br> <textarea name="letter" rows="5" cols="50">Comments </textarea> <br><br><br> <center><input type="submit" value="Submit My Question or Comment"> <!-end online question comment form-> </center></td></tr></table>