K
keiron77
Guest
I have recently moved som of the sites I work on to a new Plesk controlled dedicated server. I have just found out that the forms are not being sent. I have alway used mail() before nad that worked fine.
This is the basic form for the script that I am using:
It doesn't cause an error, it just never reaches it's destination. I have read that adding a couple of line like this would help:
But that just caused an error.
How can I get this to work. I only have access to the sites web pages and the Plesk control panel. I have about 4 live websites that need this running.
This is the basic form for the script that I am using:
PHP:
<?
$headers = "From: name <email>\n";
$headers .= "Reply-To: name <email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain;charset=us-ascii\r\n";
$to="[email protected]";
$subject = "Testing email";
$body = "test";
$err = mail($to, $subject, $body, $headers);
?>
PHP:
putenv ("QMAILUSER=admin");
putenv ("QMAILNAME=Administrator");
How can I get this to work. I only have access to the sites web pages and the Plesk control panel. I have about 4 live websites that need this running.