asimus adlı üyeden alıntı: mesajı görüntüle
//send an email
$to = $a1[EmailAddress];
$subject = "Your password at $_SERVER[HTTP_HOST]";
$message = "Hello $a1[Names],\nhere is your login information for $_SERVER[HTTP_HOST]\n\nUsername: $a1[username]\nPassword: $a1[password]\n\nTo login, follow this link:\nhttp://$_SERVER[HTTP_HOST]/login.php\n\nThank you for your registration!";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";
mail($to, $subject, $message, $headers);
Kodunu düzenleyeceksin kendine göre.
düzenledim çalışmadı