Flipkikker
Legacy Member
llo,
ik heb een probleem met mijn mail script op mijn webspace en ik heb dan ook eerst de help van mijn webhost(www.100webspace.com) er eens op nagetrokken:
dit is het script dat ik gebruik:
als ik het vergelijk met de voorbeelden van hun help, en hun instructies volg, dan zou mijn script toch moeten werken?
wat zou er mis zijn met mijn script?
ik heb een probleem met mijn mail script op mijn webspace en ik heb dan ook eerst de help van mijn webhost(www.100webspace.com) er eens op nagetrokken:
Formmail script is not working - it does not deliver the email to me. What's the problem?
You can be having trouble sending e-mail using Formmail script, because of the following reasons:
1. You have entered an e-mail address which is not hosted on our servers. We require the one of either the 'FROM:' e-mail address or the 'TO:' e-mail address to be hosted on our servers. Only if one of them is hosted on our servers, you will be able to send e-mail successfully.
2. You are using wrong header information. You must always provide the text From:, the name of the sender and an e-mail address. Without one of these three parameters, the formmail script will not work properly and will not deliver e-mail to your mailbox. You can find out more information here: http://www.php.net/manual/en/function.mail.php
Here are examples of well working formmail scripts:
First Example:
<?
$from = "From: yourname ";
$to = "receiver";
$subject = "Hi! ";
$body = "TEST";
if(mail($to,$subject,$body,$from)) echo "MAIL - OK";
else echo "MAIL FAILED";
?>
Second Example:
<?
$from = "From: sender";
$to = "yourname ";
$subject = "Hi! ";
$body = "TEST";
if(mail($to,$subject,$body,$from)) echo "MAIL - OK";
else echo "MAIL FAILED";
?>
dit is het script dat ik gebruik:
PHP:
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "[email protected]", "Mail form",
$message, "From: [email protected]" );
header( "Location: http://rreality.hollosite.com/thankyou.htm" );
?>
als ik het vergelijk met de voorbeelden van hun help, en hun instructies volg, dan zou mijn script toch moeten werken?
wat zou er mis zijn met mijn script?
