Hi, I just grab the following code online, 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 my local smtp server's address, how do i know my smtp server address?
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";
}
?>