PHP not sending mail with local SMTP
hi, hope can help
i have set iis server on 2008r2, , included standard smtp (with iis6) and php well.
the php works, beautifully. smtp works, beautifully. however, don't seem work together.
i able use smtp server send mail office mfp scanning ms outlook 2010 no trouble @ all.
php works, i have accessing odbc databases , no apparent issues there.
on basic webpage, set following:
<html> <body> <?php if (mail("me@example.com","test subject","test body")) {echo "success";} else {echo "failed";} ?> </body> <html>
all end "failed" on page.
i have added following php.ini found in "c:\program files (x86)\php\v5.3\"
[mail function]
smtp = localhost
smtp_port = 25
sendmail_from = no-reply@example.com
i have no idea go hunting php logs find out happened , why.
any appreciated
imho problem in initial configuration of install process of iis. specify, features have enabled? guess cgi missing.
for configuration see http://blogs.iis.net/bills/archive/2006/09/19/how-to-install-php-on-iis7-_2800_rc1_2900_.aspx
more on iis , related material (incl. php manager) on official iis pages here
regards
milos
Windows Server > Windows Server General Forum
Comments
Post a Comment