PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.8.1
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.8.1
8.8.2 8.8.1 8.8.0 8.7.9 8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 All 538 releases
← All changes | addons/automator/includes/actions/mailboxlayer-actions.php +4 -4 8.7.7 → 8.8.1 View file →
@@ -60,15 +60,15 @@
60 60 // try to find an email field in the trigger data.
61 61 if ( empty( $email ) || strpos( $email, '{{' ) !== false ) {
62 62 $found_email = $this->find_email_in_data( $trigger_data );
63 63 if ( $found_email ) {
64 - error_log( sprintf( 'MailboxLayer Action - Smart Fallback: Found email "%s" in trigger data.', $found_email ) );
64 + //error_log( sprintf( 'MailboxLayer Action - Smart Fallback: Found email "%s" in trigger data.', $found_email ) );
65 65 $email = $found_email;
66 66 }
67 67 }
68 68
69 69 if ( empty( $token ) || empty( $email ) || strpos( $email, '{{' ) !== false ) {
70 - error_log( sprintf( 'MailboxLayer Action - FAILED: API Key or Email is empty/unresolved. Key length: %d, Email: "%s"', strlen( $token ), $email ) );
70 + //error_log( sprintf( 'MailboxLayer Action - FAILED: API Key or Email is empty/unresolved. Key length: %d, Email: "%s"', strlen( $token ), $email ) );
71 71 return array(
72 72 'success' => false,
73 73 'message' => 'API Key and Email are required. Could not resolve email from tokens.',
74 74 );
@@ -75,9 +75,9 @@
75 75 }
76 76
77 77 // Use HTTP instead of HTTPS as some free plans only support HTTP and it's what the user confirmed works.
78 78 $endpoint = sprintf( 'http://apilayer.net/api/check?access_key=%s&email=%s&smtp=1&format=1', urlencode( $token ), urlencode( $email ) );
79 - error_log( 'MailboxLayer Action - Requesting: ' . $endpoint );
79 + //error_log( 'MailboxLayer Action - Requesting: ' . $endpoint );
80 80 if ( PHP_SAPI === 'cli' ) { echo "MailboxLayer Action - Requesting: $endpoint\n"; }
81 81
82 82 $response = wp_remote_get( $endpoint, array(
83 83 'timeout' => 20,
@@ -91,9 +91,9 @@
91 91 }
92 92
93 93 $body = json_decode( wp_remote_retrieve_body( $response ), true );
94 94 $code = wp_remote_retrieve_response_code( $response );
95 - error_log( sprintf( 'MailboxLayer Action - HTTP Code: %d, Response Body: %s', $code, wp_json_encode( $body ) ) );
95 + //error_log( sprintf( 'MailboxLayer Action - HTTP Code: %d, Response Body: %s', $code, wp_json_encode( $body ) ) );
96 96 if ( PHP_SAPI === 'cli' ) { echo sprintf( "MailboxLayer Action - HTTP Code: %d, Response Body: %s\n", $code, wp_json_encode( $body ) ); }
97 97
98 98 if ( $code >= 200 && $code < 300 && isset( $body['format_valid'] ) ) {
99 99 $is_valid = ! empty( $body['format_valid'] ) && ! empty( $body['smtp_check'] );