Installing/Configuring

Содержание

Требования

For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary.

Коментарии

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
2008-11-11 03:12:59
http://php5.kiev.ua/manual/ru/mail.setup.html
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.
2009-07-14 15:01:03
http://php5.kiev.ua/manual/ru/mail.setup.html

    Поддержать сайт на родительском проекте КГБ