• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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