PDA

View Full Version : SMTP Not sending any mails. ***FIXED***


F.B. ten Kate
01-31-2008, 09:23 AM
I've got OST setup and running perfectly at the moment, the only problem is that i cant get the clients to get their mails send to them. I've enabled the configuration in the administration panel and i've even tried the following test script to see if my PHP.ini settings are okay.

<?php

$to="mail@adress.nl";
$subject="test email";
$body="dit is een test mail";
$from="From:mail@bedrijf.nl";
$returnpath = "-fmail@bedrijf.nl";
$return = "From:Mail <mail@bedrijf.nl>";


mail($to,$subject,$body, $from);
?>

This script runs perfectly and sends me the mail everytime.

Im running a Windows Server 2003, IIS 6 and the standart SMTP. Am i missing some weird PHP extention or something?

F.B. ten Kate
01-31-2008, 09:29 AM
Owkay, ofcoarse your stuck for a few hours and then all of a sudden after you post you get it to work :P

Basically IIS wanted a reboot ^^, after the reboot it works perfectly :D

Sorry to have bothered the people who actually read all this ^^