View Single Post
Old 04-27-2009, 02:35 PM   #9 (permalink)
Seria
Seria's Avatar
 
PC Cutie ^_^

Join Date: Sep 2004

Posts: 511

Seria is on a distinguished road

Default Re: A Guide to Installing Apache, PHP, MySQL, and PHPMyAdmin on Windows

Thanks for this gread thread CrazeD,

I do not host sites on my own server, but I develop sites within my localhost (saves a lot of upload time) so this thread was a great help setting stuff up

MY QUESTION:
I'm creating a form in php which should email its gathered information however I'm getting this error:
Code:
Warning: mail() [function.mail]: Failed to connect to mailserver at
"localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
or use ini_set() in C:\WEB\APACHE\htdocs\WWW\training\6a.php on line 72
How would I setup the required "smtp_port" in the "php.ini" so that I can have my 'development code' send emails via my localhost?
I would assume its something special because this is what my php.ini file already contains:
Code:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com,
so I dont get what the problem is -.-*
__________________

Last edited by Seria; 04-27-2009 at 04:07 PM.
Seria is offline   Reply With Quote