Script email
Scris: Mie Apr 13, 2011
Hey, neata:) Am si eu o intreare...am luat un script de trimis email de pe net, dar nu merge. Acesta este:
Imi da Delivery failed fara nici o erroare...
Cod: SelectaĊ£i tot
<?php
$email=$_POST['email];
$to = "$email";
$subject = "Hi!";
$body = "Mesaj";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>