14 lines
343 B
PHP
14 lines
343 B
PHP
<?php
|
|
$subject ="Painting reservation";
|
|
$phone = strip_tags($_POST['phone']);
|
|
$email = strip_tags($_POST['e-mail']);
|
|
$message="Phone: $phone\nEmail: $email";
|
|
|
|
$mail_from="mail@example.com";
|
|
$header="from: robot <mail@example.com>";
|
|
|
|
// Enter your email address
|
|
$to ='someone@somewhere.com';
|
|
|
|
$send_contact=mail($to,$subject,$message,$header);
|