Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Can anyone see why this isn't working :
mail($mailto, $subject, $messageproper,
"From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" );
header( "Location: $thankyouurl" );
exit ;
The code doesn't go through this part, the rest seems to work, but this comes up when i submit the form.
Any idea's would be appreciated.
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
do you get an error?
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
I get :
" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" ); header( "Location: $thankyouurl" ); exit ;
Returned in the browser, it doesn't send the email and doesn't forward to the $thankyouurl
The whole document in valid and no errors or warnings found so i honestly can't work out why it isn't working.
[Edited on 16-01-2008 by Neo]
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
its being output as html then.
is it in a pure php page or is it embedded in with html stuff?
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Its a form's php code - the page itself isn't php however looks at the php document for what to do.
The code itself is not on a html page
|
Laney
Member
Registered: 6th May 03
Location: Leeds
User status: Offline
|
Looks like you haven't concatenated your variables?
"From: \"".$name."\" <".$email.">" . $headersep . "Reply-To: \"".$name."\" <".$email.">" . $headersep . "X-Mailer: chfeedback.php 2.08" );
?
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
theres not an echo before that code in the php page?
if you email the html page with form and the php page to steve@stevejwilliams.co.uk il sort it out
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Sent
|
Steve
Premium Member
Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
|
the problem was in earlier bits of the code, a few errors
|
Neo
Member
Registered: 20th Feb 07
Location: Essex
User status: Offline
|
Cheers for looking at it for me
|