Partyflock
 
Forumonderwerp · 781191
 
Ik heb een vraagje over PHP.
Ik heb een template van een mailform gedownload. Daar heb ik niks aan veranderd. Ik heb alleen in het .php bestand veranderd dat de e-mail naar mij verzonden moet worden.

Ik heb het hele zooitje geupload, en uitgeprobeerd. Maar, ik krijg geen enkel mailtje binnen!

Ik host op herejezus.nl en die ondersteunen PHP.
Er staat bij dat PHP in Safe mode draait, maar wat houdt dat in?

Wie kan mij helpen?
Artiest {SHOWLIST artist 45822, 30830}
is de mail functie bij php ook ingeschakeld?...


maak een php bestandje aan met daar in de text:

<?php
phpinfo();
?>

en open die met je browsern, krijg je alle info
 
Moet i dat bestandje dan uploaden en vanaf herejezus openen?
 
http://spongeplop.herejezus.nl/test.php
hmm ik zie dat het sendmail path wel ingevuld staat :/
zul je denkik toch ff aan je provider moete vragen, of ff die php mail code nog een keer checke
 
<?php



// Swish/PHP Email Form v.2 was created by Brian Ayers of Swish-Tutorials.com

// Unless a Donation is made for these form files - this copyright should remain intact

// Please Link directly to the main site - www.swish-tutorials.com

// IMPORTANT NOTE: DO NOT change anything that has a $ before it

// Any line that has two slashes in front of it is a comment (and will be ignored by this script)



// In case register globals is off

$message = $HTTP_POST_VARS['Message'];

$name = $HTTP_POST_VARS['Name'];

$email = $HTTP_POST_VARS['Email'];



// Begin Censors

$message = eregi_replace('fuck', "flip", $message);

$message = eregi_replace('shit', "crap", $message);

$message = eregi_replace('bitch', "nice lady", $message);

$message = eregi_replace('ass', "butt", $message);

$message = eregi_replace('piss', "pee", $message);

// End Censors



// Remove Slashes Inserted by PHP

$name = stripslashes($name);

$email = stripslashes($email);

$message = stripslashes($message);



// Start Customizable Email Information

// Change the information in quotes below to fit your needs



$rec_email = "brian@purifiedproductions.com"; // who do you want to send this email to

$subject = "Test Messages from Swish PHP Email Form v2"; // this is the subject line of the email



// End Customizable Email Information




// Add Some Extra Header Information to the Mail

$header_info = "From: ".$name." <".$email.">";



// The Body of the Email message

// You can customize the email you receive by changing the text inside the quotes below

// IMPORTANT NOTE: DO NOT change anything that has a $ before it



$msg_body = "Name: $name\n";

$msg_body .= "E-Mail: $email\n";

$msg_body .= "Comments: $message\n\n\n";

$msg_body .= "The Sender's IP Address was recorded as: $REMOTE_ADDR\nEmail Form provided by Swish-Tutorials.com";



// Now let's take the information above and mail it to the recipient

mail($rec_email, $subject, $msg_body, $header_info);





// Swish/PHP Email Form v.2 was created by Brian Ayers of Swish-Tutorials.com

// Unless a Donation is made for these form files - this copyright should remain intact

// Please Link directly to the main site - www.swish-tutorials.com



?>


Ik heb alleen het e-mailadres in het dikgedrukte gedeelte veranderd naar mijn adres.
laatste aanpassing
zo moeilijk is het maken van een eigen mailform niet?

<?php
if(!isset($_POST['ditismijnknop'])) {
require("htmlform.php");
}
else
{
mail(
"Dit is het onderwerp",
$bericht,
"naar@mijnemail.nl"
);
}
?>
laatste aanpassing