WC_Emails::send()publicWC 1.0

Send the email.

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

Хуков нет.

Возвращает

true|false.

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

$WC_Emails = new WC_Emails();
$WC_Emails->send( $to, $subject, $message, $headers, $attachments );
$to(разное) (обязательный)
Receiver.
$subject(разное) (обязательный)
Email subject.
$message(разное) (обязательный)
Message.
$headers(строка)
Email headers ..
По умолчанию: "Content-Type: text/html\r\n"
$attachments(строка)
Attachments ..
По умолчанию: ""

Код WC_Emails::send() WC 8.7.0

public function send( $to, $subject, $message, $headers = "Content-Type: text/html\r\n", $attachments = '' ) {
	// Send.
	$email = new WC_Email();
	return $email->send( $to, $subject, $message, $headers, $attachments );
}