WPCF7_Mail::send()
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() WPCF7 Mail::send CF7 5.9.8
public static function send( $template, $name = '' ) { self::$current = new self( $name, $template ); return self::$current->compose(); }