Lid |
|
Hallo allemaal,
ik gebruik de volgende code op localhost:
ini_set("SMTP","http://www.hotmail.com");
ini_set("SMTP_PORT", 25);
ini_set("sendmail_from","xxx");
$headers = "From:xxx<xxx>";
$headers .= "Reply-To: xxx<xxx>";
$headers .= "Subject: TEST";
$headers .= "Return-Path: xxx<xxx>";
$headers .= "MIME-Version: 1.0";
$headers .= "Content-type: text/html;charset=ISO-8859-9";
if (!mail("xxx", "TEST", "HELLO WORLD!", $headers)) {
echo 'mislukt';
} else {
echo 'gelukt';
}
ini_set("SMTP","http://www.hotmail.com"); $headers = "From:xxx<xxx>"; $headers .= "Reply-To: xxx<xxx>"; $headers .= "Subject: TEST"; $headers .= "Return-Path: xxx<xxx>"; $headers .= "MIME-Version: 1.0"; $headers .= "Content-type: text/html;charset=ISO-8859-9"; if (!mail("xxx", "TEST", "HELLO WORLD!", $headers)) { } else { }
Deze code werkt online, maar niet op localhost... waarom niet?
|