GRAYBYTE WORDPRESS FILE MANAGER1902

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/suremails/inc/traits/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/suremails/inc/traits//send-email.php
<?php
/**
 * Trait.
 *
 * @package SureMails\Inc\Traits;
 * @since 0.0.1
 */

namespace SureMails\Inc\Traits;

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

/**
 * Trait Instance.
 */
trait SendEmail {

	/**
	 * Send email to the user.
	 *
	 * @since 0.0.1
	 *
	 * @param string           $to          The email address to send to.
	 * @param string           $subject     The email subject.
	 * @param string           $message     The email message.
	 * @param string|array     $headers     The email headers.
	 * @param array<int,mixed> $attachments The email attachments.
	 * @return bool|null
	 */
	public static function send( $to, $subject, $message, $headers, $attachments ) {
		return wp_mail( $to, $subject, $message, $headers, $attachments );
	}

	/**
	 * Get the email headers.
	 *
	 * @since 0.0.1
	 * @return string
	 */
	public static function get_html_headers() {
		return 'Content-Type: text/html; charset=UTF-8';
	}
	/**
	 * Get the email headers.
	 *
	 * @since 0.0.1
	 * @return string
	 */
	public static function get_text_headers() {
		return 'Content-Type: text/plain; charset=UTF-8';
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:27
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:27
giriqfky / giriqfky
0644
instance.php
0.546 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
send-email.php
1.112 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF