Results 1 to 9 of 9

Thread: hosting probs

  1. #1
    Join Date
    Feb 2008
    Posts
    4

    Unanswered: hosting probs

    i registered for a subdomain at t35.com,but their send mail function is not working ,my results from my form dont deliver to my email box,is there any way of getting my results,the site doesnt have phpmyadmin or mysql(besides i dont even know how to config that) for free subdomain,and this problem is really getting me down,anyone with a good suggestion please help me

  2. #2
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    Are you getting an error message from your mail() call?

    Can you post your PHP code so we can see what you're doing and provide some debugging for you.

    Have you run phpinfo() to see if sendmail is an option?

    Do their FAQs have any information regarding the usage of scripting languages and blocked functions?

    Is it possible that they restrict mail to their local domains/subdomains only?

  3. #3
    Join Date
    Feb 2008
    Posts
    4
    <?php
    $msg = "Below is an Informaiton from a visitor from your website.
    \n\n";
    $msg .= "Account Type: $_POST[accounttype]\n";
    $msg .= "Currency Type: $_POST[currencytype]\n";
    $msg .= "Title: $_POST[title]\n";
    $msg .= "Full Name: $_POST[full_name]\n";
    $msg .= "Full Address: $_POST[full_address]\n";
    $msg .= "Date of Birth: $_POST[date_of_birth]\n";
    $msg .= "Telephone: $_POST[home_telephone]\n";
    $msg .= "Fax Number: $_POST[fax_number]\n";
    $msg .= "Nationality: $_POST[nationality]\n";
    $msg .= "Next of Kin: $_POST[next_of_kin]\n";
    $msg .= "Occupation: $_POST[occupation]\n";
    $meg .= "Company: $_POST[company]\n";
    $msg .= "Email Address: $_POST[email_address]\n";
    $meg .= "General Information: $_POST[S1]\n";
    $email = $_POST[email];
    //set up the mail
    $subject = "Application";//$_POST[subject];
    $recipient = "phemzy07@yahoo.com"; //$_POST[recipient];
    $mailheaders = "ealottery $email";
    $mailheaders .= "Reply-To: $_POST[email]";
    //send the mail
    mail($recipient, $subject, $msg, $mailheaders);


    location ("");
    ?>

    thats it right there

  4. #4
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    Quote Originally Posted by neo da matrix
    thats it right there
    erm no its not.. its a listing of your code, its not the error message form the mail call.

    Id suggest you get what you pay for. this sort of thing should be easily resolvable by the talking to the ISP.. its entriely possible that your account doesn't have mail privileges, or you are calling the mail function with inadequate information


    I'd want to check that I was using valid information in the call to the mail function. It may be to send a test message in the most simple form, if thast works then I'd know it possibly the user input that is causing the problem.

  5. #5
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    I'd say this line looks rather dubious:
    Code:
    $mailheaders = "ealottery $email";
    What is ealottery? As far as I know it's not a valid header...
    (although my knowledge of mail header is rather sketchy)

  6. #6
    Join Date
    Feb 2008
    Posts
    4
    the ea lottery header thing is coz i copied the script from a site,i just edit to my taste,i really dont know if its used for fraudulent means,but do you know any free host that the php mail function works?

  7. #7
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    You still haven't checked your phpinfo(); to see if it tells the mail() function being available.
    Also try a simple test:
    e.g.
    Code:
    <?php
    
    $email = "youremail@yourdomain.com";
    $subject = "test subject";
    $message = "test message";
    
    if(mail( $email, $subject, $message )){
      echo "it worked";
    } else {
      echo "it DIDN'T work";
    } 
    ?>

  8. #8
    Join Date
    Mar 2008
    Posts
    11
    You registered a subdomain? Then, are you sure that you can even send mail using their domain? Probably not, because not many people would be willing to let unknown people use their domain to possibly spam. First, see if you have the authority to send mail using their domain. Most hosts have a few different things that you have to put in your php mail code. So, if you can send mail on the site, just browse their help section, and I'm sure they provide all the details, such as port number, what type of mailer they use, etc.

    Edit:
    I just checked their site and saw the following in their faq section:
    Does mail() work?
    Not at this time. It was disabled due to abuse.
    Last edited by websitehacks; 03-15-08 at 18:06.
    Website Hacks
    Programming/computer help

  9. #9
    Join Date
    Jul 2007
    Location
    Africa
    Posts
    7
    And you think they will allow you ? huh ? even if you get a free host and you think they have a webmail. i bet they will disable the SMTP... so 4get the host and go look elsewhere. the Host Company knows what they are doing dude

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •