1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

php form mail not working

Discussion in 'Plesk for Linux - 8.x and Older' started by Deej, Dec 7, 2006.

  1. Deej

    Deej Guest

    Hi, I can't seem to get php form mail to work. I've tried the same script on another server and it works fine so I'm assuming it's something to do with plesk?

    It's just a basic script:

    <form action="process.php" method="post">
    Name: <input type="text" name="name" size="20" maxlength="20" /><br />
    Email: <input type="text" name="email" size="30" maxlength="30" /><br />
    Subject: <input type="text" name="subject" size="30" maxlength="30" /><br />
    Text:<textarea name="text" name="text" cols="50" rows="10"></textarea><br />
    <input type="submit" name="submit" value="Send" />

    $name = stripslashes($name);
    $email = stripslashes($email);
    $subject = stripslashes($subject);
    $text = stripslashes($text);
    mail('myeamil@domain.com',$subject,$text,"From: $name <$email>");

    Any suggestions?