Hi,
I make download a class smtp:
smtp.class-1.0.5.tar.gz
from www.phpguru.org/downloads/smtp/ site.
I uncompressed the file:
smtp_class/class.smtp.inc
smtp_class/example.php
and copy the inc file into the /usr/local/apache/htdocs directory.
I write this file(mail.php)๐in /usr/local/apache/htdocs)
<?php
include ('class.smtp.inc');
header('Content-Type:text/plain');
$To="m_dumitras@yahoo.com";
$subject="subiect";
$body="Test";
$From="m_dumitras$yahoo.com";
$m=mail(trim($To),trim($subject),$body,"From: ".trim($From));
print("Sent: $m\n");
if(!$m)
{
die("The massage hasn't sent");
}
?>
When I run this script, the browser receive:
Sent: 1
but in email (on yahoo.com) I don't receive any message.
Many thanks,
Micki