initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
header('Content-type: application/json');
|
||||
|
||||
$status = array(
|
||||
'type'=>'success',
|
||||
'message'=>'Email sent!'
|
||||
);
|
||||
|
||||
$name = @trim(stripslashes($_POST['name']));
|
||||
$email = @trim(stripslashes($_POST['email']));
|
||||
$subject = @trim(stripslashes($_POST['subject']));
|
||||
$message = @trim(stripslashes($_POST['message']));
|
||||
|
||||
|
||||
$email_from = $email;
|
||||
$email_to = zee_option('zee_contact_email');
|
||||
|
||||
$body = 'Name: ' . $name . "\n\n" . 'Email: ' . $email . "\n\n" . 'Subject: ' . $subject . "\n\n" . 'Message: ' . $message;
|
||||
|
||||
$success = @mail($email_to, $subject, $body, 'From: <'.$email_from.'>');
|
||||
|
||||
echo json_encode($status);
|
||||
die;
|
Reference in New Issue
Block a user