format("Y/m/d"); $myDate = date_create() ->format("Y-m-d"); $toTime = date('H:i:s'); $dateTime = $myDate . " " .$toTime; $message="
This is a sample html message
"; mail("apusana2@autohubgroup.com", "test", "$message", "From:aendaya@autohubgroup.com"); echo $message; ?>