Just to add to the previous note -- if you are using windows and also SMTP authentication it is possible to get this to work by using the PEAR Mail package:
http://pear.php.net/package/Mail
I do not believe the built in Mail function provides this.
David dot Kit dot Friedman at gmail dot com ¶
3 years ago
David dot Kit dot Friedman at gmail dot com ¶
3 years ago
If you are using SMTP authentication you can use the PEAR Mail package.
http://pear.php.net/package/Mail
alvaro at demogracia dot com ¶
4 years ago
The sendmail binary requirement only applies to Unix-like platforms (e.g. Linux). In Windows you need to specify a mail server that accepts mail through a network connection. Find these lines in your php.ini file:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
trial dot message at gmail dot com ¶
8 months ago
Since it appears there is no SMTP client available for Windows 7 client machines, this may save some new developers a bit of misery:
Try installing smtp4dev as a local "dummy" SMTP server. You can't actually send emails but it lets you check your code and config locally. It sasved me a lot of frustration.
Rae
