reypapz Posted October 8, 2008 Share Posted October 8, 2008 Hello anybody...I am a newbie on this forum...And I hope somebody can help solving my problem... here we go..How to configure the mail() function on PHP to work on Windows server 2003 standard Edition with IIS 6.0...My head is going to burst finding solution with this...can anybody help me with this... =>>this is some info of my php.ini [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. ;sendmail_from = me@example.com I hope somebody could help me.. thanks Quote Link to comment https://forums.phpfreaks.com/topic/127510-how-to-configure-mail-function-to-work-on-windows-2003-server-on-iis/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 8, 2008 Share Posted October 8, 2008 The SMTP setting must list either the hostname or IP address of your mail server and if your mail server is not using port 25, then you must set the smtp_port setting to match the actual port. sendmail_from is a default From: header if you don't provide a header parameter to the mail() function call. Stop and start your IIS service to get any changes made to php to take effect. Your post does not state a specific problem, what exactly do you need help with that is not working? Quote Link to comment https://forums.phpfreaks.com/topic/127510-how-to-configure-mail-function-to-work-on-windows-2003-server-on-iis/#findComment-659719 Share on other sites More sharing options...
reypapz Posted October 8, 2008 Author Share Posted October 8, 2008 hi..im sory if my prev post sound unclear of what i want...this my problem $From="sample@domain.com"; mail("test@domain.com","testing to works on windows server","Testing","From: " . $From) that code works on linux server but when I tried on my windows server it doesnt work... I tried already that option you give me but still not luck...any other way to solve this problem... I tried this [mail function] ; For Win32 only. SMTP = mail.domain.com smtp_port = 2525 ; For Win32 only. sendmail_from = me@example.com but stil doenst work...any other way...plz help me.. thanks Quote Link to comment https://forums.phpfreaks.com/topic/127510-how-to-configure-mail-function-to-work-on-windows-2003-server-on-iis/#findComment-659726 Share on other sites More sharing options...
reypapz Posted October 10, 2008 Author Share Posted October 10, 2008 hi..anybody can help me....plz... Quote Link to comment https://forums.phpfreaks.com/topic/127510-how-to-configure-mail-function-to-work-on-windows-2003-server-on-iis/#findComment-661595 Share on other sites More sharing options...
corbin Posted October 10, 2008 Share Posted October 10, 2008 Do you have an SMTP server running? Quote Link to comment https://forums.phpfreaks.com/topic/127510-how-to-configure-mail-function-to-work-on-windows-2003-server-on-iis/#findComment-661601 Share on other sites More sharing options...
reypapz Posted October 10, 2008 Author Share Posted October 10, 2008 yes we have on our server..the default SMTP virtual server..and we have also other smpt server on other host server....can anyone know to configure this stuff to work..? thanks Quote Link to comment https://forums.phpfreaks.com/topic/127510-how-to-configure-mail-function-to-work-on-windows-2003-server-on-iis/#findComment-661795 Share on other sites More sharing options...
PFMaBiSmAd Posted October 10, 2008 Share Posted October 10, 2008 Are the settings actually getting changed? Check using a phpinfo(); statement. Telling us something does not work does not help us to help you. What exactly is it doing? What are the symptoms? Are there any errors? Have you checked your web server error log file or turned on full php error reporting to see if there are any errors? Add the following two lines immediately after your first opening <?php tag - ini_set ("display_errors", "1"); error_reporting(E_ALL); What is your script? Your settings might be correct but your script might not be correct. Quote Link to comment https://forums.phpfreaks.com/topic/127510-how-to-configure-mail-function-to-work-on-windows-2003-server-on-iis/#findComment-661890 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.