Senden Sie E-Mail in wordpress

Ich versuche eine E-Mail senden mit PHP mail () - Funktion in ein wordpress-Website.
Ich habe eine leere Seite http://www.exam-vision.com/request-flip-up-instructions die Vorlage enthält den php-code gezeigt unten. Wenn ich die Daten posten, isset($_REQUEST['email']) false ist, während ich in firebug, dass die Daten gepostet wurden, richtig. Was kann falsch sein?

Dank

<?php

if (isset($_REQUEST['email']))
//if "email" is filled out, send email
{
    //send email

    $email = $_REQUEST['email'] ;
    $subject = $_REQUEST['subject'] ;
    $message = $_REQUEST['message'] ;
    mail( "<someemail>", "Subject: $subject",
    $message, "From: $email" );
    echo "Thank you for using our mail form";
}
else
//if "email" is not filled out, display the form
{
   echo "<form method='post' action='http://www.exam-vision.com/request-flip-up-instructions'>
   Email: <input name='email' type='text' /><br />
   Subject: <input name='subject' type='text' /><br />
   Message:<br />
  <textarea name='message' rows='15' cols='40'>
  </textarea><br />
  <input type='submit' />
</form>";
}
?>
InformationsquelleAutor jul | 2010-06-17
Schreibe einen Kommentar