By default,
this is set to the following:
sendmail -t -i
Keep in mind that this directive only applies to the Unix platform. Windows depends
upon establishing a socket connection to an SMTP server specified by the SMTP directive
on port smtp_port.
smtp_port = integer
Scope: PHP_INI_ALL; Default value: 25
The smtp_port directive sets the port used to connect to the server specified by the
SMTP directive.
mail.force_extra_parameters = string
Scope: PHP_INI_SYSTEM; Default value: NULL
You can use the mail.force_extra_parameters directive to pass additional flags to
the sendmail binary. Note that any parameters passed here will replace those passed
in via the mail() function??™s addl_parameters parameter.
As of PHP 4.2.3, the addl_params parameter is disabled if you??™re running in safe
mode. However, any flags passed in via this directive will still be passed in even if safe
mode is enabled. In addition, this parameter is irrelevant on the Windows platform.
Sending E-mail Using a PHP Script
E-mail can be sent through a PHP script in amazingly easy fashion, using the mail()
function. Its prototype follows:
boolean mail(string to, string subject, string message [, string addl_headers
[, string addl_params]])
The mail() function can send an e-mail with a subject and a message to one or
several recipients. You can tailor many of the e-mail properties using the addl_headers
parameter, and can even modify your SMTP server??™s behavior by passing extra flags
via the addl_params parameter.
Pages:
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493