View Full Version : Is PHP email - form mail supported?
wisemx
03-11-2008, 12:58 AM
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
python
03-11-2008, 01:45 AM
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');
?>
bruce
03-13-2008, 01:23 AM
Here's the sample we use to test
<?php
$to = "to@address.com";
$subject = "Test Mail from PHP";
$out = str_pad("This is a test", 20);
$header = "From: from@address.com\nReturn-Path: from@address.com (from@address.com\nReturn-Path)\nX-Mailer (frankc@discountasp.net\nX-Mailer): PHP/" . phpversion();
mail($to, $subject, $out, $header);
exit;
?>
It worked fine on iis7.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
vBulletin® ©Jelsoft Enterprises Ltd.