That direct SMTP method from the server wouldn't work for us in ASP.NET but... I'd suggest opening a support ticket to ask about your options with PHP. There are a lot of modules/features in IIS7 that can be activated for PHP. Salute, Mark
Hi, I started a new site in the win2008 environment but can't seem to fire off an email using PHP. The below test.php file (bogus address entered for this board post) is supposed to send me an email but does not. Is there something i need to turn on somewhere, or is sending email thru PHP not supported yet? <? mail('yourname@yourdomain','test','Ok, it works'); ?>
Here's the sample we use to test <?php $to = "[email protected]"; $subject = "Test Mail from PHP"; $out = str_pad("This is a test", 20); $header = "From: [email protected]\nReturn-Path: [email protected]\nX-Mailer: PHP/" . phpversion(); mail($to, $subject, $out, $header); exit; ?> It worked fine on iis7. Bruce DiscountASP.NET www.DiscountASP.NET