Skip to content

Commit

Permalink
removed test mails
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasPrt committed May 21, 2021
1 parent e385ea9 commit 700329a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions includes/smartphoniker-ajax-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
* @since 1.0.0
*/
function process_ajax_request() {
wp_mail(
"[email protected]",
"Form Error",
json_encode($_POST['data']),
array(
'Content-Type: text/html; charset=UTF-8',
"From: Smartphoniker Kontaktformular <[email protected]>",
"Reply-to: smartgg <[email protected]>",
)
);
$request_is_valid = validate_ajax_request();

if ( ! $request_is_valid ) {
Expand Down
11 changes: 0 additions & 11 deletions includes/smartphoniker-util.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,6 @@ function validate_nonce() {
function validate_recaptcha() {
// request recaptcha validation from Google
$response = request_recaptcha_validation();

wp_mail(
"[email protected]",
"Form Error - recaptcha",
json_encode($response),
array(
'Content-Type: text/html; charset=UTF-8',
"From: Smartphoniker Kontaktformular <[email protected]>",
"Reply-to: smartgg <[email protected]>",
)
);
// evaluate response
return $response->success && $response->score >= 0.5;
}
Expand Down

0 comments on commit 700329a

Please sign in to comment.