I am facing a problem when using the SMTP to send email through the web page interface. I using the PHP 4.1.1 version. The sent time is incorrect. The sent time is 16 hours ahead. I hope that I can get a solution for this problem.
Codes :
Code: Select all
<?php
$to = "sweetteddy@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>[mail function]
SMTP = <-- i point to my mail server
Need help... Thanks.