
06-08-2006, 06:45
|
 |
|
|
חבר מתאריך: 09.12.01
הודעות: 2,337
|
|
ציטוט:
|
במקור נכתב על ידי ישראל K
אין פונקציה MAIL, יש mail - שמות הפונקציות תלויי רישיות, לכן אלו שתי פונקציות שונות.
|
ממתי ב-PHP הפונקציות תלוייות ראשיות?
תנסה לעשות PHPINFO ולא phpinfo ותראה איזה יופי זה עובד.
מה שכן תלוי ראשיות זה ה CONSTANTS והמשתנים למיניהם...
לגבי השאלה,
בשרת ווינדאוס אין תמיכה מובנית בפונקציית MAIL , מאחר ואין דבר כזה בWINDOWS (בניגוד לNIX למיניהם).
מתוך ה-Manual:
קוד:
Note:
The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine).
Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP.
As such, the to parameter should not be an address in the form of "Something <someone@example.com>". The mail command may not parse this properly while talking with the MTA.
יש צורך להגדיר לPHP את שרת הSMTP שבו אתה משתמש (אני משער שאין לך שרת SMTP מותקן במחשב...).
לפרטים נוספים: http://il.php.net/mail
_____________________________________
“The man of wisdom is never in two minds about right and wrong;
the man of benevolence never worries about the future;
the man of courage is never afraid.”
~ Confucius
|