O
Olof Gustafsson
Guest
Hi there.
I just bought a VPS server here in Sweden. I also got Plesk 8.6.0 for administration. I have uploaded a file called "email.php", which is just a regular php email script.
I simply go to the scripts location and it says that the email is sent. But no email is sent...
My code:
<?php
putenv ("QMAILUSER=USER");
putenv ("QMAILNAME=FULL_USER_NAME");
putenv ("QMAILHOST=DOMAIN");
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain;charset=us-ascii\r\n";
$headers .= "From: FULL_USER_NAME <USER@DOMAIN>";
$to="[email protected]";
$subject = "Testing email";
$body = "";
$err = mail($to, $subject, $body, $headers);
if($err) { echo "emailed"; }
else { echo "not emailed"; }
?>
Would really appriceate some help!
I just bought a VPS server here in Sweden. I also got Plesk 8.6.0 for administration. I have uploaded a file called "email.php", which is just a regular php email script.
I simply go to the scripts location and it says that the email is sent. But no email is sent...
My code:
<?php
putenv ("QMAILUSER=USER");
putenv ("QMAILNAME=FULL_USER_NAME");
putenv ("QMAILHOST=DOMAIN");
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain;charset=us-ascii\r\n";
$headers .= "From: FULL_USER_NAME <USER@DOMAIN>";
$to="[email protected]";
$subject = "Testing email";
$body = "";
$err = mail($to, $subject, $body, $headers);
if($err) { echo "emailed"; }
else { echo "not emailed"; }
?>
Would really appriceate some help!