if (mail($to, $subject, $msg, 'From: someone@somewhare.com')) { echo 'Ticket successfully sent.'; } else { echo 'Ticket UNSUCCESSFULLY sent.'; }