Napisałem:
Kod
$head ="From: xxxx@wp.pl";
$wyslanie = mail($dokogo, $temat, $zawartosc, $head);
if($wyslanie)
{
echo "Bez przeszkód";
}
$wyslanie = mail($dokogo, $temat, $zawartosc, $head);
if($wyslanie)
{
echo "Bez przeszkód";
}
Wyskakuje błąd:
Kod
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\xampp\htdocs\przetworzmail.php on line 21
W php.ini mam:
Kod
; For Win32 only.
SMTP = smtp.wp.pl
smtp_port = 587
; For Win32 only.
sendmail_from = xxxx@wp.pl
SMTP = smtp.wp.pl
smtp_port = 587
; For Win32 only.
sendmail_from = xxxx@wp.pl
Korzystam z xamppa.
Jak usunąć ten problem?