PHP Mail Funktion
PHP Mail-Profil
mail () Funktion ermöglicht es Ihnen, E-Mail direkt aus einem Skript zu senden.
Nachfrage
Für Mail-Funktion zur Verfügung steht, muss PHP-Mail-System installiert und ausgeführt werden. Ich möchte von der Konfigurationsdatei php.ini-Definition-Set zu verwenden.
installieren
Mail-Funktionen sind Teil des PHP-Kern. Keine Installation notwendig, um diese Funktionen zu nutzen.
Laufzeit-Konfiguration
Verhalten Mail-Funktionen wird durch Einstellungen in der php.ini-Datei betroffen.
Mail-Konfigurationsoptionen:
名称 | 默认 | 描述 | 可更改 |
---|---|---|---|
SMTP | "localhost" | Windows 专用:SMTP 服务器的 DNS 名称或 IP 地址。 | PHP_INI_ALL |
smtp_port | "25" | Windows 专用:SMTP 端口号。自 PHP 4.3 起可用。 | PHP_INI_ALL |
sendmail_from | NULL | Windows 专用:规定在由 PHP 发送的电子邮件中使用的 "from" 地址。 | PHP_INI_ALL |
sendmail_path | NULL | Unix 系统专用:规定 sendmail 程序的路径(通常 /usr/sbin/sendmail 或 /usr/lib/sendmail)。 | PHP_INI_SYSTEM |
PHP Mail Funktion
PHP: zeigt diefrüheste Version von PHP, die die Funktion unterstützt.
函数 | 描述 | PHP |
---|---|---|
ezmlm_hash() | 计算 EZMLM 邮件列表系统所需的散列值。 | 3 |
mail() | 允许您从脚本中直接发送电子邮件。 | 3 |
PHP Mail-Konstanten
Keine.