Log in

View Full Version : troubles with an unhelpful webhost :(



elliot
05-20-2006, 01:34 PM
Hi guys,

I've just about had it with Web Fusion (http://www.webfusion.co.uk/), 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 (http://www.mkkids.co.uk/) 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 (http://www.bhbgroup.co.uk/orderForm.php) 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

Twey
05-20-2006, 02:05 PM
Most likely, the server has a problem with the malformed recipient and blank From: header.

elliot
05-20-2006, 11:11 PM
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?

cybercoder
05-21-2006, 11:44 AM
You could try using mail headers:


//$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.

elliot
05-27-2006, 08:25 PM
Hi cybercoder, sorry for a late reply... just seen your response. Can I ask a silly question :o 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...

Cold Gunmetal
05-29-2006, 01:06 AM
Man, web hosts suck, don't they?