WC_Emails::send
Send the email.
Method of the class: WC_Emails{}
No Hooks.
Returns
true|false.
Usage
$WC_Emails = new WC_Emails(); $WC_Emails->send( $to, $subject, $message, $headers, $attachments );
- $to(mixed) (required)
- Receiver.
- $subject(mixed) (required)
- Email subject.
- $message(mixed) (required)
- Message.
- $headers(string)
- Email headers .
Default:"Content-Type: text/html\r\n" - $attachments(string)
- Attachments .
Default:""
WC_Emails::send() WC Emails::send code WC 10.4.3
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 );
}