Este es mi código actual

    $('#contactform').submit(function(e) {
            e.preventDefault();
            var contact_name = $("#name").val();
            var contact_email = $("#email").val();
            var subject = $("#subject").val();
            var your_phone = $("#phone").val();
            var your_message = $("#message").val();
            $.post("sendmail.php", {
                name: contact_name,
                email: contact_email,
                phone: your_phone,
                subject: subject,
                message: your_message,
            }, function(data, status) {
               
    
                document.getElementById('msgmail').innerHTML = data
    
            })
    
        });