• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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