te

il) . ‘”>’ . esc_html($email) . ‘</a></td></tr>’; $admin_body .= ‘<tr><th align=”left”>Phone</th><td>’ . ($phone ? esc_html($phone) : ‘Not provided’) . ‘</td></tr>’; $admin_body .= ‘<tr><th align=”left”>Subject</th><td>’ . esc_html($subject) . ‘</td></tr>’; $admin_body .= ‘</table>’; $admin_body .= ‘<h3>Message</h3>’; $admin_body .= ‘<div style=”border-left:3px solid #1a73e8;padding:8px;background:#f8f9fa;”>’ . nl2br(esc_html($message)) . ‘</div>’; $admin_body .= ‘<h3>Location</h3>’; $admin_body .= ‘<table cellpadding=”4″ cellspacing=”0″ border=”1″ style=”border-collapse:collapse;font-size:13px;”>’; $admin_body .= ‘<tr><th align=”left”>IP</th><td>’ . esc_html($client_ip) . ‘</td></tr>’; $admin_body .= ‘<tr><th align=”left”>Country</th><td>’ . esc_html($country) . ‘ (‘ . esc_html($country_code) . ‘)</td></tr>’; $admin_body .= ‘<tr><th align=”left”>State</th><td>’ . esc_html($state) . ‘</td></tr>’; $admin_body .= ‘<tr><th align=”left”>City</th><td>’ . esc_html($city) . ‘</td></tr>’; $admin_body .= ‘</table>’; $admin_body .= ‘<p style=”margin-top:10px;”>This message was sent from <a href=”‘ . esc_url($website) . ‘”>’ . esc_html($website) . ‘</a></p>’; $admin_sent = wp_mail($admin_emails, $admin_subject, $admin_body, $headers); // USER EMAIL $user_subject = ‘Thank You for Contacting ‘ . $brand . ‘ – ‘ . $reference_id; $user_body = ‘<p><strong>Dear ‘ . esc_html($name) . ‘,</strong></p>’; $user_body .= ‘<p>Thank you for contacting ‘ . esc_html($brand) . ‘. Your message has been received.</p>’; $user_body .= ‘<p><strong>Reference Number:</strong> ‘ . esc_html($reference_id) . ‘</p>’; $user_body .= ‘<p><strong>Subject:</strong> ‘ . esc_html($subject) . ‘</p>’; $user_body .= ‘<p><strong>Message:</strong><br>’ . nl2br(esc_html($message)) . ‘</p>’; $user_body .= ‘<p><strong>Need immediate assistance?</strong><br>’ . ‘Call: ‘ . esc_html($customer_phone) . ‘<br>’ . ‘Email: info@b2bmarketingarchives.com<br>’