IsSMTP();
$mail->Host = “127.0.0.1”;
$mail->Port = 25;
$mail->SMTPAuth = false;
$mail->Sender = “spiorcs@spitalotelurosu.ro”;
$mail->From = “spiorcs@spitalotelurosu.ro”;
$mail->FromName = “Programare Online”;
$mail->AddAddress(“spiorcs@spitalotelurosu.ro”);
$mail->Subject = “Programare online: “.$_REQUEST[‘nume’];
$mail->AltBody=”Programare online: “.$_REQUEST[‘nume’];
$body = ‘
Programare online
Programare online
Nume: ‘.$_REQUEST[‘nume’].’
Telefon: ‘.$_REQUEST[‘telefon’].’
Email: ‘.$_REQUEST[’email’].’
Specialitatea: ‘.$_REQUEST[‘specialitatea’].’
Mesaj: ‘.$_REQUEST[‘mesaj’].’
|
‘;
$mail->MsgHTML($body);
$mail->Send();
$mail->ClearAddresses();
}
?>
Programare online
Mesajul a fost trimis cu succes!‘;
}
?>