1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Form Mail / PHP working very slow.... Help!

Discussion in 'Plesk for Linux - 8.x and Older' started by fercez, May 5, 2005.

  1. fercez

    fercez Guest

    0
     
    Hi,

    I just want to run this php script, but it works very slow on plesk, any ideas?


    <?
    $date=date("d/m/Y", time() );
    /* Addressee */
    $recipient .= "USER<user@domain.com>";
    /* Mail Subject */
    $subject = "Web site contact form";
    /* Message */
    $message .= "Contact form of your web site:\n\n";
    $message .= " USER - http://www.domain.com\n";
    $message .= " Date: " . $date . "\n\n";
    $message .= "------------------------------------------------\n\n";
    $message .= "Name: " . $Name . "\n";
    $message .= "Mail: " . $Mail . "\n";
    $message .= "Phone: " . $Phone . "\n\n";
    $message .= "Subject: \n" . $Comments . "\n\n";
    $message .= "------------------------------------------------\n\n";
    $headers .= "From: $Name<$Mail>\n";
    mail($recipient, $subject, $message, $headers);
    header('Location: contact.php?SEND=1');
    ?>


    Cheers
     
  2. joel69

    joel69 Guest

    0
     
    We are encountering the same thing on our install of Plesk psa v7.5.4_build75051014.16 os_FedoraCore 3.

    At first it wouldn't work at all, I had to change the /etc/php.ini file setting to:

    sendmail_path = /var/qmail/bin/qmail-inject -t -i

    Now, it works, but takes about 1 hour to send mail. This is a fresh install of Plesk with very few domains, and it is a dual processor 3 GHz with 2 GB of RAM, so the server should be able to send mail a bit faster.
     
Loading...