Hi, I just grab the following code from previous thread in the forum, everything has been set correctly, i reckon. The page return with "Success", but i haven't received any mail in my inbox. Was that Normal, or i should replace "localhost" by the ISP's mail.domain.com so that i could get a mail, or it's also working by other localhost configuration? Thanks
<?php
ini_set("SMTP","localhost");
ini_set("sendmail_from","martin_ua@yahoo.com");
if (mail("martin_ua@yahoo.com","This is a test","This is the body","From: martin_ua@yahoo.com\r\nContent-type: text/plain\r\n\r\n"))
{
print "Success";
}
else
{
print "Failed";
}
?>
<?php
ini_set("SMTP","localhost");
ini_set("sendmail_from","martin_ua@yahoo.com");
if (mail("martin_ua@yahoo.com","This is a test","This is the body","From: martin_ua@yahoo.com\r\nContent-type: text/plain\r\n\r\n"))
{
print "Success";
}
else
{
print "Failed";
}
?>