Hoàn thành một ví dụ sử dụng gửi mail xampp (ok)
testmail.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form role="form" id="contact-form" method="post" action="http://localhost/php/contact.php">
<label for="name">Name</label>
<input type="text" placeholder="Full Name" name="name" required>
<label for="email">Email</label>
<input type="email" placeholder="Your Email" name="email" required>
<label>Message</label>
<textarea name="message" placeholder="Your Message" rows="9"></textarea>
<button type="submit" class="btn">Send</button>
</form>
</body>
</html>contact.php
Last updated
Was this helpful?