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: ''
Return Return
(bool)
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 ); }