<?php


    $recepient = "info@ortopedie.md";
    $sitename = "HUBortopedie";

    $name = trim($_POST["name"]);
    $email = trim($_POST["email"]);
    $izvor = trim($_POST["izvor"]);
    // $message = "Nume: $name \nTelefon: $phone \nSursa: $izvor";
    $message = '
            <html>
                    <head>
                            <title>Descarcarea catalogului de produse</title>
                    </head>
                    <body>
                            <p>Nume : '.$name.'</p>
                            <p>Email : '.$email.'</p>
                            <p>Sursa : '.$izvor.'</p>
                    </body>
            </html>';

    // Always set content-type when sending HTML email
    $headers = "MIME-Version: 1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

    // More headers
    $headers .= 'From: <HUB@ortopedie.md>' . "\r\n";

    $pagetitle = "Descarcarea catalogului \"$sitename\"";
    mail($recepient, $pagetitle, $message, $headers);
?>

