diff --git a/api/v2/post/mailer.php b/api/v2/post/mailer.php index 6347e64..068d186 100644 --- a/api/v2/post/mailer.php +++ b/api/v2/post/mailer.php @@ -19,7 +19,7 @@ if (isset($post_content['type']) && $post_content['type'] !=''){ $mail_to = isset($post_content['to']) ? $post_content['to']: email; //QUERY AND VERIFY ALLOWED - if ($command == 'update' && isAllowed('mailer',$profile,$permission,'U') === 1){ + if (isAllowed('mailer',$profile,$permission,'U') === 1){ //CHECK MAIL TYPE switch ($mail_type) { @@ -28,7 +28,7 @@ if (isset($post_content['type']) && $post_content['type'] !=''){ //GET TEMPLATE $mail_location = (file_exists($_SERVER['DOCUMENT_ROOT'].'/custom/'.$domain.'/mail/email_template_contactform.php') ? $_SERVER['DOCUMENT_ROOT'].'/custom/'.$domain.'/mail/email_template_contactform.php' : './assets/mail/email_template_contactform.php'); include_once $mail_location; - + //SEND MAIL send_mail($mail_to,$mail_subject,$message,'',''); echo json_encode(array('status' => 'send'));