Deprecated

This method has been deprecated.

AnsPress_Email_Hooks::send_mail( string $email, string $subject, string $message )

Description #

Send email to users.

Parameters #

  • $email
    string (Required) Email id to send.
  • $subject
    string (Required) Email subject.
  • $message
    string (Required) Email body.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: addons/free/email.php

	public static function send_mail( $email, $subject, $message ) {
		if ( defined( 'AP_DISABLE_EMAIL' ) && true === AP_DISABLE_EMAIL ) {
			return;
		}

		wp_mail( $email, $subject, $message, SELF::header() );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment