WC_Emails::send()
Send the email.
Method of the class: WC_Emails{}
No Hooks.
Return
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 9.4.2
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 ); }