WC_Emails::send()
Send the email.
Метод класса: WC_Emails{}
Хуков нет.
Возвращает
true|false
.
Использование
$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 Emails::send WC 9.8.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 ); }