Forenindex » Programmierung/Entwicklung » PHP und MySQL » mail funktion unter Windows2000 Server

mail funktion unter Windows2000 Server

Anonym
Beiträge gesamt: 22827

23. Okt 2002, 16:37
Bewertung:

gelesen: 425

Beitrag als Lesezeichen
Trotz den bestehenden Einstellung wird das email nicht versendet. Kannst Du mir sagen was hier noch fehlt?


Code
/**** index.php

<?php

if (@mail('info@mymail.ch',"mymessage","hello world"))
{
echo "ok";
}
else
{
echo "nok";
}
?>

Einstellung
/**** php.ini

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables = Off

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = me@localhost.com

; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
;sendmail_path =



/**** SMTP Service ist aktiv

Name: Default SMTP Server
IP Adress: All Unassigned