mail()
jeg kan ikke få functionen mail() til at virke:(her er et udsnit af min php3.ini fil:
[mail function]
SMTP = min.udbyders.smtp.dk ;for win32 only
sendmail_from = min.egen@email.adresse ;for win32 only
sendmail_path = ;for unix only, may supply
arguments as well (default is sendmail -t)
og her er mine siders kode:
<html>
<head><title>mail</title>
</head>
<body bgcolor="blue">
<form name="hej" method="post" action="mailto.php3">
<input type="text" name="mail" size="30">
<input type="submit" name="submit" value="afsend">
</body>
</html>
den anden::
<html>
<head><title>mail to</title>
</head>
<body bgcolor="blue">
<?php
mail("$mail",
"En WC-hilsen",
"Hejsa\nEn test af et script på WebCafé.dk");
echo "Mail er sendt til $mail";
echo "<p>Tilbage til <a href=\"phpa011.php\">artiklen</a>";
?>
</body>
</html>
