paulis Posted November 24, 2004 Report Posted November 24, 2004 lieta taada, taisu lapu kas suuta e-pastu: <?php mail("joecool@example.com", "My Subject", "Spams"); ?> man izmet shaadu erroru: Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in... pameeginaaju arii shaadu skriptu: <?php mail("nobody@example.com", "the subject",$message, "From webmaster@{$_SERVER['SERVER_NAME']}\r\n". "Reply-To: webmaster@{$_SERVER['SERVER_NAME']}\r\n". "X-Mailer: PHP/". phpversion()); ?> Rezultaats taads pats. Apskatos savu php.ini: [mail function] ; For Win32 only. SMTP = localhost ; for Win32 only sendmail_from = me@example.com ; for Win32 only ; For Win32 only. sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = itkaa viss normaali, bet varbuut nee? googlee palasiiju ka firewall-aa jaatver 25. ports un to izdariiju, bet izmainjas nekaadas. kaads kaut ko vareetu ieteikt?
bubu Posted November 24, 2004 Report Posted November 24, 2004 "From webmaster@{$_SERVER['SERVER_NAME']}\r\n". vietā pamēģini moš: "From: webmaster@{$_SERVER['SERVER_NAME']}\r\n".
Recommended Posts