Sunday, July 26, 2009

Configuring PHP to send mails on Windows

In a WAMP set up (Windows Apache, MySQL, PHP) by default mail won't work because there is no SMTP server on the localhost.

By changing the PHP.ini file it can be enabled to use a different (remote) email gateway. Amend the following section:
[mail function]
; For Win32 only.
SMTP = some.email.server.com
smtp_port = 25

0 comments:

Post a Comment