• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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

F

fercez

Guest
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<[email protected]>";
/* 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
 
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.
 
Back
Top