WPCF7_Mail::send()public staticCF7 1.0

Composes and sends email based on the specified template.

Метод класса: WPCF7_Mail{}

Хуков нет.

Возвращает

true|false. Whether the email was sent successfully.

Использование

$result = WPCF7_Mail::send( $template, $name );
$template(массив) (обязательный)
Array of email template.
$name(строка)
Optional name of the template, such as 'mail' or 'mail_2'.
По умолчанию: empty string

Код WPCF7_Mail::send() CF7 5.9.3

public static function send( $template, $name = '' ) {
	self::$current = new self( $name, $template );
	return self::$current->compose();
}