PHP Mail လုပ်ဆောင်ချက်များ
PHP Mail မိတ်ဆက်
mail() လုပ်ဆောင်ချက်သည် သင့်အား script တစ်ခုမှ အီးမေးလ်များကို တိုက်ရိုက်ပေးပို့နိုင်စေပါသည်။
လိုအပ်ချက်များ
မေးလ်လုပ်ဆောင်ချက်များကို ရရှိနိုင်စေရန် PHP သည် ထည့်သွင်းပြီး အလုပ်လုပ်သော အီးမေးလ်စနစ်တစ်ခု လိုအပ်ပါသည်။ အသုံးပြုမည့် ပရိုဂရမ်ကို php.ini ဖိုင်ရှိ ချိန်ညှိချက်များဖြင့် သတ်မှတ်သည်။
တပ်ဆင်ခြင်း။
မေးလ်လုပ်ဆောင်ချက်များသည် PHP core ၏တစ်စိတ်တစ်ပိုင်းဖြစ်သည်။ ဤလုပ်ဆောင်ချက်များကို အသုံးပြုရန်အတွက် ထည့်သွင်းရန်မလိုအပ်ပါ။
Runtime Configuration
php.ini ရှိ ဆက်တင်များက မေးလ်လုပ်ဆောင်ချက်များ၏ အပြုအမူကို ထိခိုက်စေသည်-
Name | Default | Description | Changeable |
---|---|---|---|
mail.add_x_header | "0" | Add X-PHP-Originating-Script that will include UID of the script followed by the filename. For PHP 5.3.0 and above | PHP_INI_PERDIR |
mail.log | NULL | The path to a log file that will log all mail() calls. Log include full path of script, line number, To address and headers. For PHP 5.3.0 and above | PHP_INI_PERDIR |
SMTP | "localhost" | Windows only: The DNS name or IP address of the SMTP server | PHP_INI_ALL |
smtp_port | "25" | Windows only: The SMTP port number. For PHP 4.3.0 and above | PHP_INI_ALL |
sendmail_from | NULL | Windows only: Specifies the "from" address to be used when sending mail from mail() | PHP_INI_ALL |
sendmail_path | "/usr/sbin/sendmail -t -i" | Specifies where the sendmail program can be found. This directive works also under Windows. If set, SMTP, smtp_port and sendmail_from are ignored | PHP_INI_SYSTEM |
PHP Mail လုပ်ဆောင်ချက်များ
Function | Description |
---|---|
ezmlm_hash() | Calculates the hash value needed by EZMLM |
mail() | Allows you to send emails directly from a script |