Here are my php.ini directives:
SMTP = localhost
sendmail_from = poliva@cox.net
I am running PostCast Server, an SMTP server, on a winXP machine.
Here is my code:
$to = 'poliva@cox.net';
$subject = 'Jobs on the Road email verification';
$message = 'test';
if ( mail( $to, $subject, $message ) )
{
print 'Sent';
}
else
{
print 'NOT Sent';
}
As you can see, very straight forward, but it doesn't work. I know that it is not a problem with PostCast because I sent an email out via my email client using my local SMTP server. Does anyone have any ideas? I have tried just about everything.😕