관리-도구
편집 파일: contact.php
<?php // variables start $name = ""; $email = ""; $message = ""; $phone =""; $formIsReady = ""; $name = trim($_POST['contactNameField']); $email = trim($_POST['contactEmailField']); $message = trim($_POST['contactMessageTextarea']); $phone = trim($_POST['contactPhoneField']); $formIsReady = trim($_POST['formIsReady']); // variables end // email address starts $emailAddress = 'webresponse@fertilitytreatmentcenter.com'; // email address ends $subject = "Mobile Form From: $name"; $message = "<strong>From:</strong> $name <br/><br/> <strong>Message:</strong> $message"; $message = "<br/><strong>Phone:</strong> $phone<br/><br/>$message"; $headers .= 'From: '. $name . '<' . $emailAddress . '>' . "\r\n"; $headers .= 'Reply-To: ' . $email . "\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; //send email function starts if($formIsReady == "true"){ mail($emailAddress, $subject, $message, $headers); } //send email function ends ?>