WC_Emails::send │ public │ WC 1.0

Send the email.

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

Хуков нет.

Возвращает

bool.

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

$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 11.3.0

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