403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/yme/wp-content/plugins/elementor-pro/core/integrations/actions/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/yme/wp-content/plugins/elementor-pro/core/integrations/actions/email/email-address.php
<?php

namespace ElementorPro\Core\Integrations\Actions\Email;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Email_Address {

	/**
	 * Recipient email address.
	 *
	 * @var array
	 */
	public $address;

	/**
	 * Recipient name.
	 *
	 * @var string
	 */
	public $name;

	/**
	 * Email_Address constructor.
	 *
	 * @param string $address
	 * @param string $name
	 *
	 * @return void
	 */
	public function __construct( $address, $name ) {
		$this->address = (string) $address;
		$this->name = (string) $name;
	}

	/**
	 * Format an email to be ready for header (e.g. `Recipient Name <user@email.com>` or `user@email.com`)
	 *
	 * @return string
	 */
	public function format() {
		if ( ! empty( $this->name ) ) {
			return sprintf( '%s <%s>', $this->name, $this->address );
		}

		return sprintf( '%s', $this->address );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit