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.
Optional name of the template, such as 'mail' or 'mail_2'.
По умолчанию: empty string

Код WPCF7_Mail::send() CF7

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