WC_Emails::send( mixed $to, mixed $subject, mixed $message, string $headers = "Content-Type: text/htmlrn", string $attachments = '' )

Send the email.


Description Description


Parameters Parameters

$to

(Required) Receiver.

$subject

(Required) Email subject.

$message

(Required) Message.

$headers

(Optional) Email headers (default: "Content-Type: text/htmlrn").

Default value: "Content-Type: text/htmlrn"

$attachments

(Optional) Attachments (default: "").

Default value: ''


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-emails.php

	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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.