Email Form - ISP doesn't have sendmail

I am a newbie and try to sort out an email form for a website i am creating.

BTconnect is my ISP and they do not give us access to sendmail but provide me with a go between script :-

here is a link to the BT site:-

http://btbusiness.custhelp.com/cgi-bin/btbusiness.cfg/php/enduser/cci/btb_adp.php?p_faqid=6987&p_created=1115728792&p_sid=K14Egq5i&p_lva=&p_sp=&p_li=&p_cv=&p_pv=&p_prods=&p_cats=0&p_more_articles=

I have created my own form but BT's restrictions will not let me send the form information if the email doesn't have my @mydomain.com in the email address, it just bounces back to the sender aaa@notmydomain.com

Is there another way to get this information, i have had a look at the PHP but i am not sure how to program up a page to give me the particular information, BT's services are very frustrating.

They give a link to creating my own PERL script but i think that this would take me too much time to get right ,heres the link:-

http://btbusiness.custhelp.com/cgi-bin/btbusiness.cfg/php/enduser/cci/btb_adp.php?p_faqid=6775

any help would be appreciated and i am willing to give more point to get this thing working correctly.. :-)

Here is the form i created:-

<FORM
 ACTION="http://home.btconnect.com/cgi-bin/mailto/me@mydomain.com" METHOD="post" name="brochurerequest" id="brochurerequest">

    <p>
      <INPUT TYPE="hidden" NAME="SUBJECT" VALUE="TBS Web Enquiry">
   <INPUT TYPE="hidden" NAME="REQUIRED" VALUE="name,company,phone,email">
   

              <table width="477" border="0" cellpadding="5" cellspacing="0" class="style21">
            <tr>
              <td width="94" class="tbs-bigger-white"> Name</td>
              <td width="363">
                <input name="name" type="text" class="formstyle" value="" size="35" maxlength="30">
</td>
            </tr>
            <tr>
              <td class="tbs-bigger-white"> Company</td>
              <td><input name='company' type="text" class="formstyle" size="35" maxlength='30'></td>
            </tr>
            <tr>
              <td class="tbs-bigger-white">Position</td>
              <td><input name='position' type="text" class="formstyle" size="35" maxlength='35'></td>
            </tr>
            <tr>
              <td align="left" valign="top" class="tbs-bigger-white">Address</td>
              <td><textarea name="address" cols="35" rows="5" class="formstyle"></textarea></td>
            </tr>
            <tr>
              <td class="tbs-bigger-white">Postcode</td>
              <td><input name='postcode' type="text" class="formstyle" size="35" maxlength='20'></td>
            </tr>
            <tr>
              <td class="tbs-bigger-white">Phone</td>
              <td><input name='phone' type="text" class="formstyle" size="35" maxlength='20'></td>
            </tr>
            <tr>
              <td class="tbs-bigger-white">Fax</td>
              <td><input type="text" size="35" class="formstyle" name='fax' maxlength='20'></td>
            </tr>
            <tr>
              <td class="tbs-bigger-white">E-mail</td>
              <td><input name='email' type="text" class="formstyle" size="35" maxlength='100'></td>
            </tr>
          </table>
              <table width="477" border="0" cellspacing="0" cellpadding="5">
                <tr>
                  <td width="94" valign="top" class="mainbody">&nbsp;</td>
                  <td width="349">&nbsp;</td>
                </tr>
              </table>
              <table width="480" border="0" cellspacing="0" cellpadding="5">
                <tr>
                  <td width="84" valign="top" class="tbs-bigger-white">Brochure</td>
                  <td width="376"><table border="0" cellpadding="0" cellspacing="0" class="tbsreallysmall">
                      <tr>
                        <td width="376"><table width="376" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" class="tbs-small-white">
                          <tr>
                            <td bgcolor="#1ba088" class="tbs-small-white" >Product Overview </td>
                            <td bgcolor="#1BA088"><input name="Product_Overview" type="checkbox" id="Product_Overview" value="Yes"></td>
                            <td bgcolor="#1BA088" class="mainbody">Genesis System </td>
                            <td bgcolor="#1BA088"><input name="Genesis_System" type="checkbox" id="Genesis_System" value="Yes"></td>
                          </tr>
                          <tr>
                            <td bgcolor="#1ba088" class="tbs-small-white"> ZED System </td>
                            <td bgcolor="#1BA088"><input name="Zed_System" type="checkbox" id="Zed_System" value="Yes"></td>
                            <td bgcolor="#1BA088" class="mainbody">Tots 2 Teens Range</td>
                            <td bgcolor="#1BA088"><input name="tots2teens_Range" type="checkbox" id="tots2teens_Range" value="Yes"></td>
                          </tr>
                          <tr>
                            <td bgcolor="#1ba088" class="tbs-small-white"><div align="left">Flush System </div></td>
                            <td bgcolor="#1BA088"><input name="Flush_System" type="checkbox" id="Flush_System" value="Yes"></td>
                            <td bgcolor="#1BA088" class="mainbody">Ducting and Vanities </td>
                            <td bgcolor="#1BA088"><input name="Ducting_and_Vanities" type="checkbox" id="Ducting_and_Vanities" value="Yes"></td>
                          </tr>
                          <tr>
                            <td width="115" bgcolor="#1ba088" class="tbs-small-white">Slimline System </td>
                            <td width="27" bgcolor="#1BA088"><input name="Slimline_System" type="checkbox" id="Slimline_System" value="Yes">
                            </td>
                            <td width="147" bgcolor="#1BA088" class="mainbody">Lockers and Benches </td>
                            <td width="63" bgcolor="#1BA088"><input name="Locker_and_Benches" type="checkbox" id="Locker_and_Benches" value="Yes">
                            </td>
                          </tr>
                          <tr>
                            <td width="115" bgcolor="#1ba088" class="tbs-small-white">Evolution System</td>
                            <td width="27" bgcolor="#1BA088"><input name="Evolution_System" type="checkbox" id="Evolution_System" value="Yes">
                            </td>
                            <td width="147" bgcolor="#1BA088" class="mainbody">Colour Selector </td>
                            <td width="63" bgcolor="#1BA088"><input name="Colour_Selector" type="checkbox" id="Colour_Selector" value="Yes">
                            </td>
                          </tr>
                          <tr>
                            <td width="115" bgcolor="#1ba088" class="tbs-small-white">Dual System </td>
                            <td width="27" bgcolor="#1BA088"><input name="Dual_System" type="checkbox" id="Dual_System" value="Yes">
                            </td>
                            <td width="147" bgcolor="#1BA088" class="mainbody">&nbsp;</td>
                            <td width="63" bgcolor="#1BA088">&nbsp;</td>
                          </tr>
                          <tr>
                            <td width="115" bgcolor="#1ba088" class="tbs-small-white">Spectra System</td>
                            <td width="27" bgcolor="#1BA088"><input name="Spectra_System" type="checkbox" id="Spectra_System" value="Yes">
                            </td>
                            <td width="147" bgcolor="#1BA088" class="mainbody">&nbsp;</td>
                            <td width="63" bgcolor="#1BA088">&nbsp;</td>
                          </tr>
                          <tr>
                            <td width="115" bgcolor="#1ba088" class="tbs-small-white">Futura System </td>
                            <td width="27" bgcolor="#1BA088"><input name="Futura_System" type="checkbox" id="Futura_System" value="Yes">
                            </td>
                            <td width="147" bgcolor="#1BA088" class="mainbody">&nbsp;</td>
                            <td width="63" bgcolor="#1BA088">&nbsp;</td>
                          </tr>
                        </table></td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <table width="480" border="0" cellspacing="0" cellpadding="5">
                <tr>
                  <td width="72" valign="top" class="mainbody">&nbsp;</td>
                  <td width="388"><table width="382" border="0" cellpadding="0" cellspacing="0" class="formstyle">
                      <tr>
                        <td width="337"><table width="304" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
                            <tr bgcolor="#1BA088">
                              <td width="268" class="tbs-small-white">&nbsp;Please send me a full
                              product literature </td>
                              <td width="24"><input name="Full_Products" type="checkbox" id="Full_Products" value="Yes" >
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <br>
                                
              <!-REMOVE THIS IF YOU WANT TO USE YOUR OWN 'THANK YOU' PAGE (see below)->
          <INPUT TYPE="hidden" NAME="SUCCESS-RESPONSE" VALUE="Thank you for your input.">
     
             
        <INPUT TYPE="submit" VALUE="Send">
                    
              </form>
micromcAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

micromcAuthor Commented:
Been through this solution here but i didn't wait for the email account to come online.

http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_21819015.html
mvan01Commented:
Hi micromc,

I see that your ISP does not provide "access to sendmail," but are you familiar with the mailto: protocol?  You can include it in a simple <a> html tag, such as:

Contact me by sending an email to: <a href="mailto:name@domain.com">name@domain.com</a>

Clicking this link will fire up the user's default e-mail program and put your name in the to: field.  If you want to add a subject (depending on which page they clicked on) you can add that in.  See this for more details:

http://www.angelfire.com/dc/html-webmaster/mailto.htm

mailto: doesn't send the email directly from your website, but it may suit your needs.

Peace and joy.  mvan
mvan01Commented:
Hey,

Enter this into your browser's location box (or address box):

mailto:someone@somewhere.com?subject=your new website&body=Hi, I really like your website, because ...

Just a bit of javascript could get the values of some text boxes on your webpage into this format, to be submitted to the browser ( .location ) and away you go.  You don't even have to ask them for their email address because, of course, their email client will add that automatically.

Peace and joy.  mvan
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

micromcAuthor Commented:
thanks for the help but i dont want to open there mail client, i just want to send the info from the webpage..
micromcAuthor Commented:
seeing as i can send email from myself, is there way to send the email with it coming from my email address and includes there email in the information from the form??
deepaknetCommented:
Hi,

You can try using a Remotely Hosted Feedback forms. Bravenet, Freedback.com etc. do provide for free and a small advertisement in the results page for return.
FishMongerCommented:
using a Perl script to process the form and send the email is pretty easy, but you SHOULD NOT use the example that BT gave; it's really bad.  Here's a short script that will send your form info to you.  However, for the sake of brevity, I didn't include the level error checking/handling that I normally would include.

#!/usr/local/bin/perl

use strict;
use sendmail;
use CGI;
use CGI::Carp qw(fatalsToBrowser);

# create cgi object
my $q = new CGI;

# place all form submission input into a hash
my %form = $q->Vars;

# assign default values for the email sender, recipient, and subject
# the subject can come from the form, but the recipient should not
my $sender = 'me@mydomain.com';
my $recipient = 'me@mydomain.com';
my $subject = 'TBS Web Enquiry';

# url of the thank you and error pages
my $thank_you = 'http://thank_you_page.html';
my $error_page = 'http://error_page.html';

# predeclare the $message and $result variables
my ($message, $result);

# loop through the form fields and build the body of the email
foreach my $field (keys %form) { $message .= "$field:$form{$field}\n"; }

# send the email and assign $result the success/failure value
$result = sendmail($sender, $recipient, $subject, $message);

# if result is true (not equal to 0), redirect to thank you page
# else redirect to error page
$result ? print $q->redirect($thank_you) : print $q->redirect($error_page);

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.