Results 1 to 6 of 6

Thread: troubles with an unhelpful webhost :(

  1. #1
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default troubles with an unhelpful webhost :(

    Hi guys,

    I've just about had it with Web Fusion, they have to be the most unhelpful host ever....

    I've recent changed to a linux based accout as I was having ongoing issues with their windows based account.

    The problem
    I'm not able to receive variables in an email from an online form, though this form works fine on other accounts of mine, I just don't get it?

    Basically as it stands I've directed the form to another domain/host package of mine and it works fine being able to receive the email from the form with all the variables for the different input boxes.

    Trying the exact same form on Web Fusions sever gives me an empty email.

    So the send part is fine, please can you tell me what's going wrong?


    for reference the page the form goes to (placed.php) has the following code


    <?php mail("myemail.com","BHB - Order Form","
    ____________________________________________________

    Company name:
    $name
    ____________________________________________________

    Buyer's address:
    $buyer
    _________________________________________________

    Contact email address:
    $email
    ____________________________________________________

    Promotion Code = $promoCode


    ","from:") ?>




    many thanks,
    elliot
    Last edited by elliot; 05-20-2006 at 01:44 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Most likely, the server has a problem with the malformed recipient and blank From: header.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi there,

    I've included

    <?php mail("myemail.com","BHB - Order Form","
    ____________________________________________________

    Company name:
    $name
    ____________________________________________________

    Buyer's address:
    $buyer
    _________________________________________________

    Contact email address:
    $email
    ____________________________________________________

    Promotion Code = $promoCode


    ","from: $email") ?>
    though this doesn't help.....


    Just chatting with Web Fusion to try and resolve this and they've said that just because I've tested my code on other host accounts I have with different host companies doesn't mean you'd get the same results.... what!? this sounds crazy... I though because my code works elsewhere it's correct and the issue is the host, not that they're admitting anything



    Can you suggest what action I take next?

  4. #4
    Join Date
    May 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You could try using mail headers:

    Code:
    //$headers .= "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: me<".$MY_MAIL.">\r\n"; 
    $headers .= "To: you <".$your_mail.">\r\n"; 
    $headers .= "Reply-To: me <".$MY_MAIL.">\r\n"; 
    //$headers .= "X-Priority: 1\r\n"; 
    //$headers .= "X-MSMail-Priority: High\r\n"; 
    //$headers .= "X-Mailer: PHP / ".phpversion()."\r\n";
    it could be your host blocking the mail, but i doubt that will be the case.

  5. #5
    Join Date
    Aug 2005
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi cybercoder, sorry for a late reply... just seen your response. Can I ask a silly question where would you put these mail headers? within the page that submits the php to an email?

    I've actually been going backwards and forwards with the host company only to find out they don't accept global variables? due to them wanting to be extra secure!..? here's the link they gave me http://www.hosting-support.pipex.net/view.cgi?id=237

    I've got to make a .htaccess file to specify a line to allow global variables... I did this though in doing so when I refreshed to view the website it came up with a 500 internal server error page

    heeellppppp...
    Last edited by elliot; 05-27-2006 at 09:45 PM.

  6. #6
    Join Date
    May 2006
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Man, web hosts suck, don't they?

Bookmarks

Posting Permissions

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