# ablocks/2.14.0/templates/email/plain-text/contact-email.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.14.0. 16 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.14.0/code/templates/email/plain-text/contact-email.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.14.0/raw/templates/email/plain-text/contact-email.php
- Modified: 2025-11-15T06:49:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/2.14.0/code/templates/email/plain-text/contact-email.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

// esc_html_e( 'New Contact Form Submission', 'ablocks' ) . "\n";
// esc_html_e( 'You have a new contact form submission!', 'ablocks' ) . "\n";
// esc_html_e( 'Email:', 'ablocks' ) . esc_html( $email ) . "\n";
// esc_html_e( 'Message:', 'ablocks' ) . "\n";
echo wp_kses_post( $message ) . "\n";

$url = wp_parse_url( get_bloginfo( 'url' ) );
$host = isset( $url['host'] ) ? sanitize_text_field( $url['host'] ) : '';
$port = isset( $url['port'] ) ? sanitize_text_field( (string) $url['port'] ) : '80';
echo esc_html( $host . ':' . $port );

```
